As we never can have enough examples, and this one was about the simplest that just worked on Ubuntu, I'll paste my variant of it here. It is slightly different because I'm behind a proxy, and thus my git calls are somewhat different, and I got my slime from a git repository rather than a cvs one.
;; compiled together from http://riddell.us/clojure/ and ;; http://groups.google.com/group/clojure/browse_thread/thread/bb2445519f74dcef/e725f3cab7e6a76 ;; run from ~/opt 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 ;; Doesn't work for me, might be something with my proxy. As an alternative: git clone http://git.boinkor.net/git/slime.git git clone http://github.com/jochu/clojure-mode.git clojure-mode git clone http://github.com/jochu/swank-clojure.git swank-clojure cd clojure ant cd .. cd contrib ant -Dclojure.jar=../clojure/clojure.jar cd .. ;; put the below in ~/.emacs, and uncomment the ;; comments that start with only 1 ; ;(add-to-list 'load-path "~/opt/clojure-mode") ;(require 'clojure-mode) ;; Swank bit ;; Instructions from ;; http://github.com/jochu/swank-clojure/tree/master ;; ;(add-to-list 'load-path "~/opt/swank-clojure") ;(require 'swank-clojure-autoload) ;(swank-clojure-config ; (setq swank-clojure-jar-path "~/opt/clojure/clojure.jar") ; (setq swank-clojure-extra-classpaths (list ; "~/opt/contrib/src" ; "~/opt/contrib/classes" ; "~/.clojure"))) ; ; ;(add-to-list 'load-path "~/opt/slime") ;(require 'slime) ;(slime-setup) ;; Uncomment to turn off the "beep" which sounded ;; everytime the top or bottom of a file was reached ;(setq ring-bell-function 'ignore) On Dec 23 2008, 7:15 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote: > 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 checkouthttp://clojure.googlecode.com/svn/trunk/clojure > svn checkouthttp://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 -~----------~----~----~----~------~----~------~--~---