From 13dd1847dc18bc611d6bb10785b711f303ad89fb Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 8 Apr 2021 15:48:11 -0500 Subject: [PATCH] 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. --- early-init.el | 3 ++- init.el | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/early-init.el b/early-init.el index 53059cd..68038a5 100644 --- a/early-init.el +++ b/early-init.el @@ -97,7 +97,8 @@ (expand-file-name "~/.local/bin") (expand-file-name "~/usr/bin") (expand-file-name "~/cmd") - (expand-file-name "~/mingw64/bin"))) + (expand-file-name "~/mingw64/bin") + (expand-file-name "~/clisp-2.49"))) (when (file-exists-p path) (add-to-list 'exec-path path :append))) 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)))