<?xml version="1.0" encoding="utf-8"?>

<feed xmlns="http://www.w3.org/2005/Atom">
<title>Phil Dawes Stuff: slime</title>
<id>http://phildawes.net/blog//tag/slime/</id>
<link rel="alternate" type="text/html" href="http://phildawes.net/blog//tag/slime/" />
<link rel="self" type="application/atom+xml" href="http://phildawes.net/blog//tag/slime/atom.xml" />
<author><name>Phil Dawes</name></author>
<updated>2010-11-30T18:01:00Z</updated>


<entry>
  <title type="html">Clojure + emacs/slime without the magic package install stuff</title>
  
  <category term="General" /> 
  <category term="clojure" /> 
  <category term="emacs" /> 
  <category term="programming" /> 
  <category term="slime" /> 
  <category term="swank" />
  <id>http://phildawes.net/blog/2010/11/30/clojure-emacs-slime/</id>
  <updated>2010-11-30T18:01:00Z</updated>
  <published>2010-11-30T18:01:00Z</published>
  <link rel="alternate" type="text/html" href="http://phildawes.net/blog/2010/11/30/clojure-emacs-slime/" />
  <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
	


<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>




      </div>
  </content>
</entry>




</feed>
