chiark / gitweb /
dot-emacs: Initialize slime-repl-mode-map.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 11 May 2009 10:15:11 +0000 (11:15 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 11 May 2009 10:15:11 +0000 (11:15 +0100)
For some reason, some Debian versions of SLIME don't correctly
initialize this, so we'd better do it by hand.  Of course, this sucks.

dot-emacs.el

index 5b9408fd7a7018f2951b7b1d3cfd29a7e83cf2be..fea06c99dd1b3caa444c1f214addf21ae6cdb2ad 100644 (file)
@@ -2072,6 +2072,10 @@ (defun mdw-fontify-smalltalk ()
 
 ;; --- Lispy languages ---
 
+;; Unpleasant bodge.
+(unless (boundp 'slime-repl-mode-map)
+  (setq slime-repl-mode-map (make-sparse-keymap)))
+
 (defun mdw-indent-newline-and-indent ()
   (interactive)
   (indent-for-tab-command)