
Check it out here!
http://github.com/bmillare/dj
clojure
clojure-contrib
leiningen
swank-clojure
clojure-mode
mkdir ~/clj
cd ~/clj
git clone git://github.com/richhickey/clojure.git
git clone git://github.com/richhickey/clojure-contrib.git
git clone git://github.com/technomancy/leiningen.git
git clone git://github.com/technomancy/swank-clojure.git
git clone git://github.com/jochu/clojure-mode.git
cd ~/clj/clojure
ant
cd ~/clj
mkdir -p runtime runtime/bin runtime/classes runtime/lib
#!/bin/bash
java -cp ~/clj/runtime/lib/clojure.jar clojure.main
cd ~/clj/runtime/lib
ln -s ~/clj/clojure/clojure.jar
cd ~/clj/clojure-contrib
ant -Dclojure.jar=~/clj/runtime/lib/clojure.jar
ln -s ~/clj/clojure-contrib/clojure-contrib.jar ~/clj/runtime/lib
cd ~/bin # this folder is in my path
wget http://github.com/technomancy/leiningen/raw/stable/bin/lein
chmod +x lein
mv lein lein-stable
lein-stable self-install
cd ~/clj/leiningen
lein-stable deps
ln -s ~/clj/leiningen/bin/lein ~/bin/lein
lein jar
ln -s ~/clj/leiningen/leiningen.jar ~/clj/runtime/lib
cd ~/clj/swank-clojure
lein jar
ln -s ~/clj/swank-clojure/swank-clojure.jar ~/clj/runtime/lib
;; in the .emacs file, clojure configuration
;; to run slime, M-- M-x slime then type clojure
;;tells emacs where to find clojure-mode.el
(add-to-list 'load-path "~/clj/clojure-mode")
(require 'clojure-mode)
(setq swank-clojure-jar-home "~/clj/runtime/lib")
;; need to override default deps so self-install is not evoked
;; the URLs are honestly arbitrary, I essentially just removed
;; the version info so that the filenames match the filenames
;; of the jars I built
(setq swank-clojure-deps
      (list (concat "http://repo.technomancy.us/"
                    "swank-clojure.jar")
            (concat "http://build.clojure.org/snapshots/org/"
                    "clojure/clojure/1.1.0-master-SNAPSHOT/"
                    "clojure.jar")
            (concat "http://build.clojure.org/snapshots/org/"
                    "clojure/clojure-contrib/1.1.0-master-SNAPSHOT/"
                    "clojure-contrib.jar")))
(add-to-list 'load-path "~/clj/swank-clojure")
(require 'swank-clojure)
;; needed for overriding default method for invoking slime
(ad-activate 'slime-read-interactive-args)