More than anything, this post succinctly describes how to get up and running with Clojure + Emacs. Virtually no thinking is required if you are working from a default install of Ubuntu, and not much more is required for any linux distro – you just need to know how to use your package manager.
Furthermore, if any of these steps would cause you trouble (deleting .emacs* comes to mind), you probably already know how to handle it.
Ubuntu: sudo aptitude install emacs git-core ant openjdk-6-jdk
- Evaluate the install code
- OR evaluate at the cli (warning: rm -Rf ~/.emacs* might not do what you want)
rm -Rf ~/.emacs*
git clone git://github.com/technomancy/emacs-starter-kit.git ~/.emacs.d
emacs
M-x package-install (M-x corresponds to ALT-x in emacs)
M-x clojure-install
echo "(eval-after-load 'clojure-mode '(clojure-slime-config))" >> ~/.emacs.d/user'name.el
emacs foo.clj
M-x slime
Other notes:
- For cli setup, see Tim Riddell’s tutorials – I recommend the bash startup alias, in particular.
- For a longer explanation, see Phil Hagelberg’s post.