I use Aquamacs, and aquamacs is pre-equipped with slime.
(setq inferior-lisp-program "/usr/local/bin/sbcl") #####!!! (add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME/contrib") (add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME") (require 'slime) (slime-setup)
As is asked in here, I try to use clojure by adding this code.
(add-to-list 'load-path "~/clojure/clojure-mode") (setq inferior-lisp-program "/Users/smcho/bin/clj") ################ (require 'clojure-mode) (setq auto-mode-alist (cons '("\\.clj$ . clojure-mode") auto-mode-alist)) (add-hook 'clojure-mode-hook '(lambda () (define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last-sexp))) )
I couldn't make it clojure run with slime, but I'm satisfied with the current setting, the only problem is that because of the (setq inferior-lisp-program ...) code, I have to change the .emacs code depending on I use clojure or sbcl.
Is there any way to solve this problem? Can I choose between multiple (inferior) lisps?
Added
I could make clojure run on Aquamacs. Please refer to this. Forget about the settings written above, if you want to run aquamacs/clojure. you need just one line (slime-setup '(slime-repl)) and 'lein swank'.