Clojure + Emacs(mdelaurentis.tumblr.com)
mdelaurentis.tumblr.com
Clojure + Emacs
http://mdelaurentis.tumblr.com/post/421253627/clojure-emacs
11 comments
The built-in Lisp mode for editing and the inferior-lisp mode REPL give you 80 percent of SLIME without the installation pain.
I used Emacs Starter Kit (http://github.com/technomancy/emacs-starter-kit) and it set everything up for me in seconds.
I think these days the easiest way to getting a working Clojure+SLIME setup is to use ELPA.
Emacs Starter Kit includes ELPA and a bunch packages from there: it is precisely just a starter kit with some setup made for you and some "skeleton" for your .emacs.d.
So, if you already have your Emacs and ELPA setup, it's easier to just install a couple packages, but if you are starting from scratch with Emacs (as I was), the starter kit is better.
So, if you already have your Emacs and ELPA setup, it's easier to just install a couple packages, but if you are starting from scratch with Emacs (as I was), the starter kit is better.
By far. And use leiningen swank to configure the classpath for your REPL when working on a project.
http://wiki.github.com/technomancy/leiningen/emacs-integrati...
http://wiki.github.com/technomancy/leiningen/emacs-integrati...
I should add that I'm using Aquamacs, and avoided the Emacs Starter Kit due to the following note on the page you linked:
"Some have reported getting it to work with Aquamacs. However, since Aquamacs is not portable, it's difficult to test in it, and breakage is common."
"Some have reported getting it to work with Aquamacs. However, since Aquamacs is not portable, it's difficult to test in it, and breakage is common."
I have some instructions that work equally for Carbon Emacs or Aquamacs here, http://www.formconstant.net/diagrams/?p=54.
Setting up Clojure on OS X is really easy now.
Setting up Clojure on OS X is really easy now.
I've been using it with Aquamacs without difficulty, for whatever it's worth.
My .emacs is based on the emacs-starter-kit as well, its really helpful to hit the ground running if you do not have a configured emacs yet.
With M-x swank-clojure-project, you don't have to slime-connect, just provide a project path.
http://github.com/technomancy/swank-clojure
http://github.com/technomancy/swank-clojure
On my adventures I found plenty of blog posts like this one, but none of them very recent, and I couldn't get any of them to work. Hopefully I'll have better luck this time, with a guide matching the current state of Clojure's distribution.