How do I set up the Clojure classpath in Emacs after installing with ELPA?

Posted by derefed on Stack Overflow See other posts from Stack Overflow or by derefed
Published on 2010-03-07T22:02:28Z Indexed on 2010/03/08 11:06 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

I'm trying to add paths to my classpath in the Clojure REPL that I've set up in Emacs using ELPA. Apparently, this isn't the $CLASSPATH environment variable, but rather the swank-clojure-classpath variable that Swank sets up. Because I used ELPA to install Swank, Clojure, etc., there are a ton of .el files that take care of everything instead of my .emacs file. Unfortunately, I can't figure out how to change the classpath now.

I've tried using (setq 'swank-clojure-extra-classpaths (list ...)) both before and after the ELPA stuff in my .emacs, and I've tried adding paths directly to swank-clojure-classpath in .emacs, .emacs.d/init.el, and .emacs.d/user/user.el, but nothing works.

What I'm ultimately trying to do is to add both the current directory "." and the directory in which I keep my Clojure programs. I'm assuming swank-clojure-classpath is the thing I need to set here. Thanks for your help.

© Stack Overflow or respective owner

Related posts about clojure

Related posts about emacs