Revive common lisp setup

This commit is contained in:
larstvei 2026-02-28 15:20:56 +01:00
parent 2b6ae38dd2
commit cf148f434a

View File

@ -1782,26 +1782,20 @@
developer. You can install the Common Lisp slime counterpart using developer. You can install the Common Lisp slime counterpart using
[[http://www.quicklisp.org/beta/][Quicklisp]], creating a helper that can be loaded. [[http://www.quicklisp.org/beta/][Quicklisp]], creating a helper that can be loaded.
We can specify what Common Lisp program Slime should use (I use SBCL). More We can specify what Common Lisp program Slime should use (I use SBCL).
sensible =loop= indentation is borrowed from [[https://github.com/simenheg][simenheg]].
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Superior Lisp Interaction Mode for Emacs ;; Superior Lisp Interaction Mode for Emacs
(use-package slime (use-package slime
:disabled
:defer t :defer t
:bind (:map slime-repl-mode-map ("C-l" . slime-repl-clear-buffer))
:hook (common-lisp-mode . activate-slime-helper)
:config :config
(when (file-exists-p "~/.quicklisp/slime-helper.el")
(load (expand-file-name "~/.quicklisp/slime-helper.el")))
(setq inferior-lisp-program "sbcl") (setq inferior-lisp-program "sbcl")
(setq slime-contribs '(slime-fancy slime-repl))
(setq lisp-loop-forms-indentation 6 (setq slime-repl-history-size 1000)
lisp-simple-loop-indentation 2 (add-hook 'slime-repl-mode-hook
lisp-loop-keyword-indentation 6)) (lambda ()
(local-set-key (kbd "C-l") 'slime-repl-clear-buffer))))
#+end_src #+end_src