diff options
author | Case Duckworth | 2021-04-09 17:51:29 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-09 17:51:29 -0500 |
commit | 5f45147ca556bd9c97d09ec37a39f429ae9dc3d6 (patch) | |
tree | 3493ba1626cda6bbbb4ae46b7195ca490173c672 /init.el | |
parent | Whitespace (diff) | |
download | emacs-5f45147ca556bd9c97d09ec37a39f429ae9dc3d6.tar.gz emacs-5f45147ca556bd9c97d09ec37a39f429ae9dc3d6.zip |
Load slime-helper.el if it exists
I couldn't find a function that would return a filename /if/ it exists, so I had to write one: `expand-file-name-exists-p'. Might change the name at some point.
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/init.el b/init.el index d70aeb0..b93f4aa 100644 --- a/init.el +++ b/init.el | |||
@@ -759,7 +759,13 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
759 | (executable-find "sbcl"))) | 759 | (executable-find "sbcl"))) |
760 | (setup (:straight slime) | 760 | (setup (:straight slime) |
761 | (require 'slime-autoloads) | 761 | (require 'slime-autoloads) |
762 | (:option inferior-lisp-program lisp-bin))) | 762 | (:option inferior-lisp-program lisp-bin) |
763 | |||
764 | (when-let ((slime-helper (or (expand-file-name-exists-p | ||
765 | "~/quicklisp/slime-helper.el") | ||
766 | (expand-file-name-exists-p | ||
767 | "~/var/quicklisp/slime-helper.el")))) | ||
768 | (load slime-helper)))) | ||
763 | 769 | ||
764 | (when (executable-find "fennel") | 770 | (when (executable-find "fennel") |
765 | (setup (:straight fennel-mode) | 771 | (setup (:straight fennel-mode) |