From c70671f31970ed9b0aeab492215fdfa8b08f4fb2 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 14 Apr 2008 10:34:50 +0100 Subject: [PATCH] emacs: Start actually doing some Emacs-side SLIME customization. Use UTF-8 to communicate with Lisps which understand it. And make SBCL the official default. --- emacs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/emacs b/emacs index d945642..9ce28d5 100644 --- a/emacs +++ b/emacs @@ -544,6 +544,23 @@ ("^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 --- -- 2.11.0