Skip to content

Commit

Permalink
Move slime to a common-lisp lang contrib.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcons authored and syl20bnr committed Aug 15, 2015
1 parent 84ad24f commit 1198c48
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#+TITLE: SLIME contribution layer for Spacemacs
#+TITLE: Common Lisp contribution layer for Spacemacs

[[file:img/slime.png]]

Expand All @@ -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

Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1198c48

Please sign in to comment.