Improve SLIME layer

- Use slime for indentation
- Add extension for SBCL
- Allow to create a common lisp scratch buffer with slime-scratch
- Enable fuzzy completion with score.
- Don't enable SLIME in Emacs Lisp. It's not usable. The SLIME of Emacs
Lisp is Emacs itself.
This commit is contained in:
Tu Do 2015-03-31 12:42:13 +07:00 committed by syl20bnr
parent 835d565b3f
commit fd1f524aff

View file

@ -23,11 +23,22 @@ which require an initialization must be listed explicitly in the list.")
:commands slime-mode
:init
(progn
(setq slime-contribs '(slime-fancy)
(setq slime-contribs '(slime-fancy
slime-indentation
slime-sbcl-exts
slime-scratch)
inferior-lisp-program "sbcl")
(add-to-hooks 'slime-mode '(lisp-mode-hook
emacs-lisp-mode-hook
scheme-mode-hook)))
;; enable fuzzy matching in code buffer and SLIME REPL
(setq slime-complete-symbol*-fancy t)
(setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol)
;; enabel smartparen in code buffer and SLIME REPL
(add-hook 'slime-repl-mode-hook #'smartparens-strict-mode)
(add-to-hooks 'slime-mode '(lisp-mode-hook scheme-mode-hook)))
:config
(message "loading slime...")
(slime-setup)))
(slime-setup)
(dolist (m `(,slime-mode-map ,slime-repl-mode-map))
(define-key m [(tab)] 'slime-fuzzy-complete-symbol))))