Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
;; First fetch CVS version of slime, git version of clojure, swank-clojure, clojure-contrib and clojure-mode
;; Create ~/bin/clojure script which starts clojure repl and adds clojure-contrib src dir and swank-clojure src dir to classpath. I used clj-env helper from clojure-contrib
(pushnew '("\.clj$" . clojure-mode) auto-mode-alist)
(require 'clojure-mode)
;;;; Slime configuration stuff
(setf slime-lisp-implementations
'((ecl("~/bin/ecl" "--heap-size" "1024000000") :coding-system utf-8-unix)
(sbcl ("sbcl"))
(ccl ("~/cvstree/ccl.svn/lx86cl"))
(abcl ("~/cvstree/abcl.svn/abcl") :coding-system iso-latin-1-unix)
(clojure ("~/bin/clojure") :init swank-clojure-init)
))
(require 'slime-autoloads)
(setf slime-use-autodoc-mode nil) ;; swank-clojure doesn't support autodoc-mode
(slime-setup '(slime-banner slime-repl slime-fancy slime-scratch slime-editing-commands slime-scratch slime-asdf))
(setf slime-net-coding-system 'utf-8-unix)
(setf swank-clojure-binary "/home/username/bin/clojure")
(require 'swank-clojure)
(defun run-clojure ()
"Runs clojure lisp REPL"
(interactive)
(slime 'clojure))
(defun run-ccl ()
"Runs ccl lisp REPL"
(interactive)
(slime 'ccl))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment