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.
This commit is contained in:
Case Duckworth 2021-04-08 15:48:11 -05:00
parent 0550d9ed97
commit 13dd1847dc
2 changed files with 10 additions and 3 deletions

View File

@ -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)))

10
init.el
View File

@ -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)))