Clojure

Clojure on Debian Squeeze

The following was done after reading http://clojure-doc.org/articles/tutorials/emacs.html

Clojure

Download and place somewhere, say /opt/clojure-1.4.0

Add to $CLASSPATH:

export CLASSPATH=$CLASSPATH:/opt/clojure-1.4.0/clojure-1.4.0.jar

Leinungen

Get the lein script. Place in say /shell, chmod +x and run -- it will fetch leinuningen and install it in /.lein.

You can then use lein (starting the script).

Cljr/Clojure REPL

https://github.com/liebke/cljr

Emacs

(add-to-list 'load-path "~/.elisp")

;; ...

;; clojure
(require 'clojure-mode)
(require 'clojure-test-mode)
(require 'nrepl)

You can now start nrepl with M-x nrepl-jack-in