Hi folks,

Up 'till now I've been perfectly happy with Emacs' inferior-lisp mode,
but I decided to try SLIME.  Since there seem to be a lot of questions
about SLIME, I thought I would make a record of everything I did to
get it set up.  This is on OSX with Aquamacs.  I'm setting up Clojure,
clojure-contrib, SLIME, swank-clojure, clojure-mode, and paredit.

Step 1: prepare a space

    cd /Users/stuart/Projects
    mkdir clj
    cd clj

Step 2: get the latest sources of everything

    svn checkout http://clojure.googlecode.com/svn/trunk/ clojure
    svn checkout http://clojure-contrib.googlecode.com/svn/trunk/
contrib
    cvs -d :pserver:anonymous:anonym...@common-lisp.net:/project/slime/
cvsroot co slime
    git clone git://github.com/jochu/clojure-mode.git clojure-mode
    git clone git://github.com/jochu/swank-clojure.git swank-clojure

Step 3: compile everything

    cd clojure
    ant
    cd ..
    cd contrib
    ant -Dclojure.jar=../clojure/clojure.jar
    cd ..

Step 3: edit Emacs configuration.  Since this is Aquamacs, I edited
~/Library/Preferences/Aquamacs Emacs/Preferences.el
to add the following lines:

    (push "/Users/stuart/Projects/clj/clojure-mode" load-path)
    (load-library "clojure-auto")
    (load-library "clojure-paredit")

    (push "/Users/stuart/Projects/clj/swank-clojure" load-path)
    (require 'swank-clojure-autoload)
    (swank-clojure-config
     (setq swank-clojure-jar-path
           "/Users/stuart/Projects/clj/clojure/clojure.jar")
     (setq swank-clojure-extra-classpaths
           (list "/Users/stuart/Projects/clj/contrib/src"
                 "/Users/stuart/Projects/clj/contrib/classes")))

    (push "/Users/stuart/Projects/clj/slime" load-path)
    (require 'slime)
    (slime-setup)

Step 4: restart Emacs

Step 5: In Emacs, enter: M-x slime

Step 6: SLIMEy, Clojurey goodness!

The only snag I ran into was figuring out that swank-clojure has to be
loaded BEFORE slime in the Emacs configuration.

-Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to