From 158f695813e49547260e77aad59a57b5459b2ab6 Mon Sep 17 00:00:00 2001 From: toctan Date: Mon, 30 Jun 2014 19:52:32 +0800 Subject: [PATCH 1/2] Do not bind "C-c i" to slime-inspect This keybinding is in conflict with that of `prelude-ido-goto-symbol`, and `slime-inspect` is already bound to "C-c I" --- modules/prelude-common-lisp.el | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/prelude-common-lisp.el b/modules/prelude-common-lisp.el index 0d5c6c9..c397604 100644 --- a/modules/prelude-common-lisp.el +++ b/modules/prelude-common-lisp.el @@ -84,7 +84,6 @@ slime-autodoc-use-multiline-p t) (define-key slime-mode-map (kbd "TAB") 'slime-indent-and-complete-symbol) - (define-key slime-mode-map (kbd "C-c i") 'slime-inspect) (define-key slime-mode-map (kbd "C-c C-s") 'slime-selector))) (provide 'prelude-common-lisp) From ffe83505306abeb3e55fd9cb1b866bdb03bafcb8 Mon Sep 17 00:00:00 2001 From: toctan Date: Mon, 30 Jun 2014 19:59:30 +0800 Subject: [PATCH 2/2] Start slime automatically with `slime-auto-start` --- modules/prelude-common-lisp.el | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/prelude-common-lisp.el b/modules/prelude-common-lisp.el index c397604..7fd4acc 100644 --- a/modules/prelude-common-lisp.el +++ b/modules/prelude-common-lisp.el @@ -68,20 +68,13 @@ (add-hook 'lisp-mode-hook (lambda () (run-hooks 'prelude-lisp-coding-hook))) (add-hook 'slime-repl-mode-hook (lambda () (run-hooks 'prelude-interactive-lisp-coding-hook))) -(defun prelude-start-slime () - "Start SLIME unless it's already running." - (unless (and (fboundp 'slime-connected-p) (slime-connected-p)) - (save-excursion (slime)))) - -;; start slime automatically when we open a lisp file -(add-hook 'slime-mode-hook 'prelude-start-slime) - (eval-after-load "slime" '(progn (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol slime-fuzzy-completion-in-place t slime-enable-evaluate-in-emacs t - slime-autodoc-use-multiline-p t) + slime-autodoc-use-multiline-p t + slime-auto-start 'always) (define-key slime-mode-map (kbd "TAB") 'slime-indent-and-complete-symbol) (define-key slime-mode-map (kbd "C-c C-s") 'slime-selector)))