feat(common-lisp): make quicklisp directory configurable
Previously, `+lisp/find-file-in-quicklisp` used a hard-coded directory aimed at a nonstandard Quicklisp install location, `~/.quicklisp`. The default install location is `~/quicklisp`, without the dot. This commit makes the user's Quicklisp directory configurable through the variable `+lisp-quicklisp-paths`. `+lisp/find-file-in-quicklisp` has been updated to respect this variable. Close: #7830 Co-authored-by: bpseudopod <bpseudopod@users.noreply.github.com>
This commit is contained in:
parent
378272bcab
commit
819c20bb69
2 changed files with 9 additions and 1 deletions
|
@ -37,4 +37,8 @@
|
|||
(defun +lisp/find-file-in-quicklisp ()
|
||||
"Find a file belonging to a library downloaded by Quicklisp."
|
||||
(interactive)
|
||||
(doom-project-find-file "~/.quicklisp/dists/"))
|
||||
(doom-project-find-file
|
||||
(or (cl-loop for dir in +lisp-quicklisp-paths
|
||||
if (file-directory-p dir)
|
||||
return (expand-file-name "dists/" dir))
|
||||
(user-error "Couldn't find your Quicklisp directory (customize `+lisp-quicklisp-paths')"))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue