Skip to content

Instantly share code, notes, and snippets.

@lanceweber
Created February 19, 2010 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lanceweber/309085 to your computer and use it in GitHub Desktop.
Save lanceweber/309085 to your computer and use it in GitHub Desktop.
;; clojure, slime, swank
;; slime
(add-to-list 'load-path (concat init-dir "/vendor/slime/"))
(require 'slime)
(add-to-list 'load-path (concat init-dir "/vendor/slime/contrib"))
(require 'slime-repl)
(eval-after-load "slime"
'(progn (slime-setup '(slime-repl))))
(slime-setup)
; clojure-mode
(add-to-list 'load-path (concat init-dir "/vendor/clojure-mode"))
(require 'clojure-mode)
;; swank-clojure
(add-to-list 'load-path (concat init-dir "/vendor/swank-clojure"))
(require 'swank-clojure)
;; associate clojure and slime
(require 'assoc)
(aput 'slime-lisp-implementations 'clojure
(list (swank-clojure-cmd) :init 'swank-clojure-init))
;; set classpath
(setq swank-clojure-classpath
(list "/Workbench/lib/clojure/clojure.jar"
"/Workbench/lib/clojure/clojure-contrib.jar"
(concat init-dir "/vendor/swank-clojure/src")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment