Skip to content

Commit

Permalink
Get slime, swank, clojure etc. working, including clojure-contrib. Phew.
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 12, 2009
1 parent 86b376b commit 1584b21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
10 changes: 9 additions & 1 deletion init-clojure.el
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
(require 'swank-clojure-autoload)
(add-hook 'clojure-mode-hook 'pretty-lambdas)
(add-hook 'clojure-mode-hook (lambda () (enable-paredit clojure-mode-map)))


(setq clojure-src-root (expand-file-name "~/Projects/External"))

(setq swank-clojure-jar-path (concat clojure-src-root "/clojure/clojure.jar")
swank-clojure-extra-classpaths (list (concat clojure-src-root "/clojure-contrib/clojure-contrib.jar")))

(require 'swank-clojure-autoload)
(eval-after-load 'clojure-mode '(clojure-slime-config))


(defun slime-clojure ()
"Fire up slime running the swank-clojure backend"
(interactive)
Expand Down
13 changes: 5 additions & 8 deletions init-common-lisp.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
;; See http://bc.tech.coop/blog/070927.html
(setq slime-lisp-implementations
'((sbcl ("sbcl") :coding-system utf-8-unix)
(cmucl ("cmucl") :coding-system iso-latin-1-unix)))
(require 'slime-autoloads)
(add-auto-mode 'lisp-mode "\\.cl$")
(global-set-key [f4] 'slime-selector)
Expand All @@ -12,13 +9,13 @@

(eval-after-load "slime"
'(progn
(add-to-list 'slime-lisp-implementations
'((sbcl ("sbcl") :coding-system utf-8-unix)))
(add-to-list 'slime-lisp-implementations
'((cmucl ("cmucl") :coding-system iso-latin-1-unix)))
(add-to-list 'load-path (concat (directory-of-library "slime") "/contrib"))
(slime-setup '(slime-fancy slime-banner slime-asdf))
(setq slime-complete-symbol*-fancy t)
(setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol)
(add-hook 'slime-mode-hook 'pretty-lambdas)
(add-hook 'slime-mode-hook (lambda () (enable-paredit slime-mode-map)))
(slime-setup)))
(add-hook 'slime-mode-hook (lambda () (enable-paredit slime-mode-map)))))

;; From http://bc.tech.coop/blog/070515.html
(defun lispdoc ()
Expand Down

0 comments on commit 1584b21

Please sign in to comment.