This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/slime/packages.el
Tu Do fd1f524aff 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.
2015-04-04 00:23:33 -04:00

44 lines
1.4 KiB
EmacsLisp

;;; packages.el --- slime Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defvar slime-packages
'(slime)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(defvar slime-excluded-packages '()
"List of packages to exclude.")
(defun slime/init-slime ()
(use-package slime
:commands slime-mode
:init
(progn
(setq slime-contribs '(slime-fancy
slime-indentation
slime-sbcl-exts
slime-scratch)
inferior-lisp-program "sbcl")
;; 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)
(dolist (m `(,slime-mode-map ,slime-repl-mode-map))
(define-key m [(tab)] 'slime-fuzzy-complete-symbol))))