From 397174ebd2d1e94501ad66d6fade9de18db44371 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 22 Jan 2020 21:09:44 +0000 Subject: [PATCH] Support Common Lisp After a bedazzling demonstration of Emacs + Common Lisp, I needed to download Sly and `sbcl` and give it a try. --- configs/shared/.emacs.d/wpc/packages/wpc-lisp.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-lisp.el b/configs/shared/.emacs.d/wpc/packages/wpc-lisp.el index cab93f1fc..1fe51e20d 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 "" + "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))