<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technitribe &#187; Manpath</title>
	<atom:link href="http://blog.peopleareducks.com/tag/manpath/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.peopleareducks.com</link>
	<description>not at all like a diatribe</description>
	<lastBuildDate>Sat, 27 Mar 2010 01:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Macports, and Erlang: Setting up Emacs and your $MANPATH</title>
		<link>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/</link>
		<comments>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 03:32:05 +0000</pubDate>
		<dc:creator>tbielawa</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Erlang]]></category>
		<category><![CDATA[Macports]]></category>
		<category><![CDATA[Manpath]]></category>

		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=101</guid>
		<description><![CDATA[You may find this helpful if you should find yourself using Erlang on OS X and you&#8217;ve installed it using Macports. After a default installation you&#8217;ll need to manually configure your .emacs file for erlang-mode and set your $MANPATH variable correctly, here&#8217;s how. If you&#8217;ve installed Erlang with Macports then you may have noticed that [...]]]></description>
			<content:encoded><![CDATA[<p>You may find this helpful if you should find yourself using <a href="http://www.erlang.org/">Erlang</a> on OS X and you&#8217;ve installed it using <a href="http://www.macports.org">Macports</a>. After a default installation you&#8217;ll need to manually configure your .emacs file for <strong>erlang-mode</strong> and set your $MANPATH variable correctly, here&#8217;s how.</p>
<p>If you&#8217;ve installed Erlang with Macports then you may have noticed that when you edit <strong>.erl</strong> files you&#8217;re not entering into <strong>erlang-mode</strong>, nor is it available to enter into. Here&#8217;s how I got <a href="http://www.erlang.org/doc/apps/tools/erlang_mode_chapter.html">erlang-mode</a> working on my system.</p>
<p>Macports will install Erlang into /opt/local/lib/erlang by default. <a href="http://www.erlang.org/doc/apps/tools/erlang_mode_chapter.html#id2261177">The paths</a> to put in your .emacs file provided in the erlang-mode documentation only need to be tweaked a slight bit to function properly. Here&#8217;s what I put in mine:</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> load-path <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cons</span>  <span style="color: #ff0000;">&quot;/opt/local/lib/erlang/lib/tools-2.6.4/emacs/&quot;</span> load-path<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> erlang-root-dir <span style="color: #ff0000;">&quot;/opt/local/lib/erlang&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> exec-path <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cons</span> <span style="color: #ff0000;">&quot;/opt/local/bin&quot;</span> exec-path<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>require 'erlang-start<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Note that you may require setting &#8220;tools-2.6.4&#8243; to something else if Macports has upgraded it&#8217;s distribution of Erlang.</p>
<p>Setting up your $MANPATH variable is fairly simple as well. Just put the string &#8220;/opt/local/lib/erlang/man&#8221; in a file called &#8216;erlang&#8217; in /etc/manpaths.d/ and make sure it ends with an empty line. Test this by opening a new terminal and running: <strong>echo $MANPATH | grep erlang</strong>. If it doesn&#8217;t come back empty then you&#8217;ve done it right.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
