Skip to content

Commit 97b03ca

Browse files
committedSep 25, 2013
Drop clojure slime support, and make slime work with common lisp
See #56, purcell#57, purcell#70 If upgrading, first remove ~/.emacs.d/elpa/slime-fuzzy* and ~/.emacs.d/elpa/slime-repl*, then restart Emacs.
1 parent 1adf96d commit 97b03ca

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed
 

‎init-common-lisp.el

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
(normal-mode))))
77

88
(after-load 'slime
9-
(add-to-list 'slime-lisp-implementations
10-
'(sbcl ("sbcl") :coding-system utf-8-unix))
11-
(add-to-list 'slime-lisp-implementations
12-
'(cmucl ("lisp") :coding-system iso-latin-1-unix)))
9+
(when (executable-find "sbcl")
10+
(add-to-list 'slime-lisp-implementations
11+
'(sbcl ("sbcl") :coding-system utf-8-unix)))
12+
(when (executable-find "lisp")
13+
(add-to-list 'slime-lisp-implementations
14+
'(cmucl ("lisp") :coding-system iso-latin-1-unix))))
1315

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

‎init-elpa.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ARCHIVE is the string name of the package archive.")
5454
(setq package-filter-function
5555
(lambda (package version archive)
5656
(or (not (string-equal archive "melpa"))
57-
(not (memq package '(slime))))))
57+
(not (memq package '())))))
5858

5959

6060

‎init-slime.el

-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
(require-package 'slime)
22

3-
;; There are 2 versions of Slime available as packages. The 2010* version
4-
;; is for Clojure compatibility, and uses separate packages for slime-fuzzy
5-
;; and slime-repl. The other version is the latest available, which
6-
;; contains a complete "contrib" dir.
7-
(let ((slime-contrib-dir (concat (directory-of-library "slime") "/contrib")))
8-
(if (file-directory-p slime-contrib-dir)
9-
;; Ensure contrib dir is ahead of any slime-{fuzzy,repl} package
10-
(add-to-list 'load-path slime-contrib-dir)
11-
(require-package 'slime-fuzzy)
12-
(require-package 'slime-repl)))
13-
143
(require-package 'ac-slime)
154
(require-package 'hippie-expand-slime)
165

17-
18-
(autoload 'slime-fuzzy-init "slime-fuzzy" "" nil)
19-
(after-load 'slime-fuzzy
20-
(require 'slime-repl))
21-
226
(defun sanityinc/set-up-slime-repl-auto-complete ()
237
"Bind TAB to `indent-for-tab-command', as in regular Slime buffers."
248
(local-set-key (kbd "TAB") 'indent-for-tab-command))

0 commit comments

Comments
 (0)
Please sign in to comment.