I've tried to migrate to Emacs several times for Clojure development, following a variety of blogposts, screencast and tutorials, but somewhere along the way something always went wrong – keybindings that didn't work, incompatible versions, etc, and I found myself scrambling back to Vim. But I know I want Paredit and SLIME.
So, I'm going to try again, this time backed by the powerful Stack Overflow™ community.
I hope that the answer to this question will remain up-to-date, and can serve as a reference for tentative converts like me.
What I'd like is:
- The latest stable release of Clojure
- Aquamacs (if it's good enough for Rich Hickey, it's good enough for me), a recent version
- Clojure Mode
- SLIME/SWANK
- Paredit
- Anything else that's indispensible?
Step-by-step instructions to install the above would be excellent – preferably in shell script format. I'd also like some hints on how to get started with the most common Clojure-related actions (including key-bindings), including links to documentation and cheatsheets.
Best Answer
These are the steps I took to set them up without using ELPA. Hope this helps.
Get SLIME using MacPorts
Get paredit
Get clojure & clojure-contrib
Get clojure-mode and swank-clojure (Emacs side)
Get swank-clojure (Clojure side)
Put clojure, clojure-contrib and swank-clojure .jar files in ~/.swank-clojure or ~/.clojure (the default places where swank-clojure.el searches for them).
Add to either ~/.emacs or ~/Library/Preferences/Aquamacs Emacs/customization.el (change paths to match your own settings)