about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-09 12:50:11 -0500
committerCase Duckworth2021-04-09 12:50:11 -0500
commit41009efecc51fab54fc0f2ca379a12769c3008e8 (patch)
tree60ee416ee248ef061d65ea0a99f90d4c590d89bc
parentChange font loading logic to hopefully be more robust (diff)
downloademacs-41009efecc51fab54fc0f2ca379a12769c3008e8.tar.gz
emacs-41009efecc51fab54fc0f2ca379a12769c3008e8.zip
Load clisp for slime
-rw-r--r--early-init.el4
-rw-r--r--init.el9
2 files changed, 11 insertions, 2 deletions
diff --git a/early-init.el b/early-init.el index 8515fa9..7f19bfe 100644 --- a/early-init.el +++ b/early-init.el
@@ -96,7 +96,9 @@
96 (expand-file-name "~/.local/bin") 96 (expand-file-name "~/.local/bin")
97 (expand-file-name "~/usr/bin") 97 (expand-file-name "~/usr/bin")
98 (expand-file-name "~/cmd") 98 (expand-file-name "~/cmd")
99 (expand-file-name "~/mingw64/bin"))) 99 (expand-file-name "~/mingw64/bin")
100 (expand-file-name "~/clisp-2.49/"))
101 exec-path)
100 (when (file-exists-p path) 102 (when (file-exists-p path)
101 (add-to-list 'exec-path path :append))) 103 (add-to-list 'exec-path path :append)))
102 104
diff --git a/init.el b/init.el index 05a1382..1eae7e0 100644 --- a/init.el +++ b/init.el
@@ -737,13 +737,20 @@ if ripgrep is installed, otherwise `consult-grep'."
737 (setup (:straight eros) 737 (setup (:straight eros)
738 (:hook-into emacs-lisp-mode))) 738 (:hook-into emacs-lisp-mode)))
739 739
740(setup (:straight geiser))
741
742(when-let (lisp-bin (or (executable-find "clisp")
743 (executable-find "sbcl")))
744 (setup (:straight slime)
745 (require 'slime-autoloads)
746 (:option inferior-lisp-program lisp-bin)))
747
740(when (executable-find "fennel") 748(when (executable-find "fennel")
741 (setup (:straight fennel-mode) 749 (setup (:straight fennel-mode)
742 (autoload 'fennel-mode "fennel-mode" nil t) 750 (autoload 'fennel-mode "fennel-mode" nil t)
743 (autoload 'fennel-repl "fennel-mode" nil t) 751 (autoload 'fennel-repl "fennel-mode" nil t)
744 (:option (append auto-mode-alist) '("\\.fnl\\'" . fennel-mode)))) 752 (:option (append auto-mode-alist) '("\\.fnl\\'" . fennel-mode))))
745 753
746(setup (:straight geiser))
747 754
748(setup (:straight lua-mode) 755(setup (:straight lua-mode)
749 (:option (append auto-mode-alist) '("\\.lua\\'" . lua-mode))) 756 (:option (append auto-mode-alist) '("\\.lua\\'" . lua-mode)))