emacs: Start actually doing some Emacs-side SLIME customization.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 14 Apr 2008 09:34:50 +0000 (10:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 14 Apr 2008 09:34:50 +0000 (10:34 +0100)
Use UTF-8 to communicate with Lisps which understand it.  And make SBCL
the official default.

emacs

diff --git a/emacs b/emacs
index d945642..9ce28d5 100644 (file)
--- a/emacs
+++ b/emacs
        ("^pdf$" "." "evince %o")
        ("^html?$" "." "netscape %o")))
 
+;;;----- SLIME setup --------------------------------------------------------
+
+(let ((stuff '((cmucl ("cmucl"))
+              (sbcl ("sbcl") :coding-system utf-8-unix)
+              (clisp ("clisp") :coding-system utf-8-unix))))
+  (or (boundp 'slime-lisp-implementations)
+      (setq slime-lisp-implementations nil))
+  (while stuff
+    (let* ((head (car stuff))
+          (found (assq (car head) slime-lisp-implementations)))
+      (setq stuff (cdr stuff))
+      (if found
+         (rplacd found (cdr head))
+       (setq slime-lisp-implementations
+             (cons head slime-lisp-implementations))))))
+(setq slime-default-lisp 'sbcl)
+
 ;;;----- Shell mode ---------------------------------------------------------
 
 ;; --- Make the shell mode aware of my prompt ---