From 13dd1847dc18bc611d6bb10785b711f303ad89fb Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 8 Apr 2021 15:48:11 -0500 Subject: Add `slime' On Windows, I use CLisp for LISP, so I need to add the path to exec-path there. I also moved `geiser''s definition to keep fennel and lua together. --- init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 05a1382..1b4ba12 100644 --- a/init.el +++ b/init.el @@ -737,14 +737,20 @@ if ripgrep is installed, otherwise `consult-grep'." (setup (:straight eros) (:hook-into emacs-lisp-mode))) +(when-let (lisp-bin (or (executable-find "sbcl") + (executable-find "clisp"))) + (setup (:straight slime) + (require 'slime-autoloads) + (:option inferior-lisp-program lisp-bin))) + +(setup (:straight geiser)) + (when (executable-find "fennel") (setup (:straight fennel-mode) (autoload 'fennel-mode "fennel-mode" nil t) (autoload 'fennel-repl "fennel-mode" nil t) (:option (append auto-mode-alist) '("\\.fnl\\'" . fennel-mode)))) -(setup (:straight geiser)) - (setup (:straight lua-mode) (:option (append auto-mode-alist) '("\\.lua\\'" . lua-mode))) -- cgit 1.4.1-21-gabe81