<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4503787776250759801</id><updated>2012-02-16T02:44:17.286-08:00</updated><title type='text'>Thought Adventures</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thoughtadventures.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4503787776250759801/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://thoughtadventures.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kevin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4503787776250759801.post-817233489647232434</id><published>2010-01-06T22:57:00.001-08:00</published><updated>2010-01-06T23:03:24.069-08:00</updated><title type='text'>Setting up a Clojure REPL with Emacs and Slime</title><content type='html'>I spent a long week trying to get clojure and slime set up in emacs. It was very frustrating with emacs 22 and I never figured it out. These steps work have been tested on Ubuntu 9.10 and OSX 10.6 with emacs 23.&lt;br /&gt;&lt;br /&gt;Install Emacs 23. From apt-get or download for osx.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;apt-get install emacs&lt;br /&gt;-or-&lt;br /&gt;&lt;a href="http://emacsformacosx.com/"&gt;http://emacsformacosx.com/&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Install ELPA [&lt;a href="http://tromey.com/elpa/install.html"&gt;http://tromey.com/elpa/install.html&lt;/a&gt;]:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;M-x ielm [to fire up the emacs lisp interpreter]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Paste and run the following to install ELPA.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;(let ((buffer (url-retrieve-synchronously&lt;br /&gt;    "http://tromey.com/elpa/package-install.el)))&lt;br /&gt;(save-excursion&lt;br /&gt;(set-buffer buffer)&lt;br /&gt;(goto-char (point-min))&lt;br /&gt;(re-search-forward "^$" nil 'move)&lt;br /&gt;(eval-region (point) (point-max))&lt;br /&gt;(kill-buffer (current-buffer))))&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Install swank-clojure with ELPA:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;M-x package-list-packages&lt;br /&gt;Scroll down to swank-clojure and press i.&lt;br /&gt;Press x to start installation.&lt;br /&gt;Close emacs with C-x C-c.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Run swank-clojure with slime and let swank-clojure install it's dependencies:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Start emacs.&lt;br /&gt;M-x slime&lt;br /&gt;Answer yes to have swank-clojure install deps.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Bradford does a good job explaining how to install leiningen in &lt;a href="http://measuringmeasures.blogspot.com/2010/01/clojure-quick-start-guide.html"&gt;this&lt;/a&gt; post so go with that. Once it's installed you can get your first emacs/slime/clojure repl like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&gt; mkdir ~/tmp/&lt;br /&gt;&gt; cd ~/tmp/&lt;br /&gt;&gt; lein new test_clojure_repl&lt;br /&gt;&gt; cd test_clojure_repl&lt;br /&gt;&gt; lein deps&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Start slime with all the leiningen default dependencies:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Start emacs.&lt;br /&gt;M-x swank-clojure-project&lt;br /&gt;Press enter to choose current directory.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;You should now have a nice clojure/clojure-contrib repl.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4503787776250759801-817233489647232434?l=thoughtadventures.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thoughtadventures.blogspot.com/feeds/817233489647232434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thoughtadventures.blogspot.com/2010/01/setting-up-clojure-repl-with-emacs-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4503787776250759801/posts/default/817233489647232434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4503787776250759801/posts/default/817233489647232434'/><link rel='alternate' type='text/html' href='http://thoughtadventures.blogspot.com/2010/01/setting-up-clojure-repl-with-emacs-and.html' title='Setting up a Clojure REPL with Emacs and Slime'/><author><name>Kevin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
