Move slime to a common-lisp lang contrib.
This commit is contained in:
parent
84ad24f8ff
commit
1198c48fcc
|
@ -1,4 +1,4 @@
|
|||
#+TITLE: SLIME contribution layer for Spacemacs
|
||||
#+TITLE: Common Lisp contribution layer for Spacemacs
|
||||
|
||||
[[file:img/slime.png]]
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
* Description
|
||||
|
||||
A Spacemacs contribution layer for [[https://github.com/slime/slime][SLIME]].
|
||||
A Spacemacs contribution layer providing Common Lisp support via [[https://github.com/slime/slime][SLIME]].
|
||||
|
||||
* Install
|
||||
|
||||
|
@ -26,10 +26,10 @@ if it was a distribution install.
|
|||
To use this contribution, add it to your =~/.spacemacs=
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-configuration-layers '(slime))
|
||||
(setq-default dotspacemacs-configuration-layers '(common-lisp))
|
||||
#+END_SRC
|
||||
|
||||
This layer defaults to using [[http://www.sbcl.org/][sbcl]]. If you wan to use a different implementation
|
||||
This layer defaults to using [[http://www.sbcl.org/][sbcl]]. If you want to use a different implementation
|
||||
of Common Lisp, you can specify it in your =~/.spacemacs=
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
|
@ -1,4 +1,4 @@
|
|||
;;; extensions.el --- slime Layer extensions File for Spacemacs
|
||||
;;; extensions.el --- Common Lisp Layer extensions File for Spacemacs
|
||||
;;
|
||||
;; Copyright (c) 2012-2014 Sylvain Benner
|
||||
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
@ -1,4 +1,4 @@
|
|||
;;; packages.el --- slime Layer packages File for Spacemacs
|
||||
;;; packages.el --- Common Lisp Layer packages File for Spacemacs
|
||||
;;
|
||||
;; Copyright (c) 2012-2014 Sylvain Benner
|
||||
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
||||
|
@ -10,10 +10,10 @@
|
|||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
(setq slime-packages
|
||||
'(slime))
|
||||
(setq common-lisp-packages
|
||||
'(slime))
|
||||
|
||||
(defun slime/init-slime ()
|
||||
(defun common-lisp/init-slime ()
|
||||
(use-package slime
|
||||
:commands slime-mode
|
||||
:init
|
||||
|
@ -32,14 +32,13 @@
|
|||
(smartparens-strict-mode -1)
|
||||
(turn-off-smartparens-mode))
|
||||
(add-hook 'slime-repl-mode-hook #'slime/disable-smartparens)
|
||||
(add-to-hooks 'slime-mode '(lisp-mode-hook scheme-mode-hook)))
|
||||
(add-to-hooks 'slime-mode '(lisp-mode-hook)))
|
||||
:config
|
||||
(progn
|
||||
(slime-setup)
|
||||
(dolist (m `(,slime-mode-map ,slime-repl-mode-map))
|
||||
(define-key m [(tab)] 'slime-fuzzy-complete-symbol))
|
||||
(dolist (m '(lisp-mode
|
||||
scheme-mode))
|
||||
(dolist (m '(lisp-mode))
|
||||
(evil-leader/set-key-for-mode m
|
||||
"mcc" 'slime-compile-file
|
||||
"mcC" 'slime-compile-and-load-file
|
Loading…
Reference in New Issue