<?xml version="1.0" ?>
<rss version="2.0">
<channel>
	<title>Phil Dawes Stuff: slime</title>
	<link>http://phildawes.net/blog//tag/slime/</link>
	<description>Entries of Phil Dawes Stuff tagged with 'slime'</description>


	<item>
		<title>Clojure + emacs/slime without the magic package install stuff</title>
		<description><![CDATA[


<p>Sometimes I just want to install stuff into emacs manually so I know what's going on. Here's a minimal setup to use emacs slime and connect to a swank server with a repl</p>

<p>I stick everything in the /opt directory. I'm using clojure 1.3.0-alpha3</p>

<ol>
<li><pre><code>git clone git://git.boinkor.net/slime.git</code></pre></li>
<li><pre><code>git clone https://github.com/technomancy/swank-clojure.git</code></pre></li>
<li><p>setup emacs:</p>

<pre><code>(add-to-list 'load-path "/opt/clojure-mode")
(require 'clojure-mode)

(add-to-list 'load-path "/opt/slime")

(eval-after-load "slime"
  '(progn
     (slime-setup '(slime-repl))))
(require 'slime)</code></pre>
<p> (That last 'eval-after-load' bit is to enable the slime-repl. Recent versions of slime come without it enabled by default)</p>

</li>
<li><p>Go to your project directory and start the swank server:

<pre><code>java -cp "lib/*:.:/opt/swank-clojure/src:/opt/clojure-1.3.0-alpha3/clojure.jar" clojure.main -e "(use 'swank.swank)(apply -main *command-line-args*)" /dev/null "$@"</code></pre>
</p></li>

<li>In emacs, connect to swank server:

<pre><code>M-x slime-connect</code></pre>
</li>
</ol>



]]></description>
		<link>http://phildawes.net/blog/2010/11/30/clojure-emacs-slime/</link>
		<guid>http://phildawes.net/blog/2010/11/30/clojure-emacs-slime/</guid>
	</item>


</channel></rss>
