Programming Clojure – classpath for Emacs and Slime
Posted by Amit Rathore on November 29, 2008
This is probably obvious to a lot of people, but I had a hard time trying to figure out how to get emacs/slime to see my clojure and java stuff. I was able to get it all up and running when I started Clojure from the command line, but when using slime, it was unable to locate all the extra stuff I wanted it to. After a bit of googling, I found out how to do it. Put the following line before calling (require ‘swank-clojure-autoload) in your dot emacs:
(setq swank-clojure-extra-classpaths (list "/class/path/1" "/class/path/2" "/class/path/3" "etc"))
Restart emacs, start slime, and it will now find everything on those paths

