Clementson's Blog

Bits and pieces (mostly Lisp-related) that I collect from the ether.

December 2008
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Nov  Jan

My Clojure Emacs Setup (I'll show mine if you show yours)

Friday, December 5, 2008

When I first started experimenting with Clojure a couple of months ago, I posted a setup summary on my blog. However, Clojure has been going through a period of change and some of the setup steps that I listed in that post are no longer ones that I use. Also, as I use Clojure more, I adapt my Emacs setup to reflect that. So, I thought it was worthwhile to document what my setup looks like at the moment (hopefully, starting a mini-meme that others will emulate on their blogs - it's always nice to see how others setup their development environment). The relevant directories/files in my home directory are illustrated here:

Clojure/Emacs directory structure

The green directories/files are Clojure code only, the blue directories/files are Emacs Lisp files related to my Clojure setup, and the yellow files are bash commands related to my Clojure setup:

Here are the actual files that I use: Again, this is just what works for me, it's not meant to be a tutorial on how to setup or use Clojure, SLIME, or Emacs (if you need a tutorial or hand-holding to get started, see either the Clojure Wiki or download one of the pre-packaged setups like ClojureBox). Use at your own risk! Since I've shown you mine, now it's your turn to show off your Clojure Emacs Setup! ;-)

Update-2009-01-04: There were some "breaking" changes made to SLIME around December 23, 2008 (the SLIME REPL was moved out into the "contribs" directory and is treated as an optional module by SLIME). I have updated my .emacs startup to reflect the necessary startup changes. There are also a few additional customizations that are included as well since I'm now using paredit with Clojure/SLIME too. In addition, some things that I originally had in my user.clj file have now become part of clojure-contrib so have been removed. One additional change that I've made is that I've moved the Javadoc documentation directory from ~/lisp/clj/java to ~/lisp/docs/java.

emacs Copyright © 2009 by Bill Clementson