about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-15T10·42+0100
committerVincent Ambo <tazjin@google.com>2020-01-15T10·42+0100
commitbfd0bc2a79e6f3758566c45ddb61a59265c9fab2 (patch)
tree8ad4f04af8daf4cfdf9275a5de9f8db855bcb25a /tools
parentc2a797ed8b372c0e53ad5a954f2e178af3d910b3 (diff)
feat(emacs.d): Configure Sly for Common Lisp r/383
Sets up Lisp modes in Sly REPL and points at the local hyperspec
checkout.

In fact the Hyperspec bit should probably be managed by Nix, but one
step at a time.
Diffstat (limited to 'tools')
-rw-r--r--tools/emacs/config/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el
index eac109f985d0..f074c0d8e08a 100644
--- a/tools/emacs/config/init.el
+++ b/tools/emacs/config/init.el
@@ -182,6 +182,14 @@
 (use-package nginx-mode)
 (use-package rust-mode)
 
+(use-package sly
+  :hook ((sly-mrepl-mode . (lambda ()
+                             (paredit-mode)
+                             (rainbow-delimiters-mode-enable)
+                             (company-mode))))
+  :config
+  (setq common-lisp-hyperspec-root "file:///home/tazjin/docs/lisp/"))
+
 (use-package telega
   :bind (:map global-map ("s-t" . telega))
   :config (telega-mode-line-mode 1))