about summary refs log tree commit diff
path: root/configs/shared
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-22T21·09+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-22T21·13+0000
commit397174ebd2d1e94501ad66d6fade9de18db44371 (patch)
treefb7fec9a9b0972144b548ac1b4c7f4f7674c5b63 /configs/shared
parent92f5773421350b996d776c0461f3a4a5d2d4ef16 (diff)
Support Common Lisp
After a bedazzling demonstration of Emacs + Common Lisp, I needed to download
Sly and `sbcl` and give it a try.
Diffstat (limited to 'configs/shared')
-rw-r--r--configs/shared/.emacs.d/wpc/packages/wpc-lisp.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-lisp.el b/configs/shared/.emacs.d/wpc/packages/wpc-lisp.el
index cab93f1fc3d2..1fe51e20d43b 100644
--- a/configs/shared/.emacs.d/wpc/packages/wpc-lisp.el
+++ b/configs/shared/.emacs.d/wpc/packages/wpc-lisp.el
@@ -26,6 +26,17 @@
     racket-mode-hook)
   "List of LISP modes.")
 
+(use-package sly
+  :config
+  (setq inferior-lisp-program "sbcl")
+  (general-define-key
+   :keymaps 'sly-mode-map
+   :states '(normal)
+   :prefix "<SPC>"
+   "x" #'sly-eval-defun
+   "X" #'sly-eval-buffer
+   "d" #'sly-describe-symbol))
+
 (use-package rainbow-delimiters
   :config
   (general-add-hook wpc/lisp-mode-hooks #'rainbow-delimiters-mode))