Skip to content

Commit

Permalink
adds clojure executable
Browse files Browse the repository at this point in the history
I forgot that it could be not only 'clj' but 'clojure' as well
  • Loading branch information
agzam committed Dec 7, 2024
1 parent cb36308 commit 97c5c90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neil.el
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ Otherwise uses the given value."
"Returns absolute path to neil executable."
(if-let* ((exe (cond
((and (stringp neil-executable-path)
(string-match-p "^clj\\s-" neil-executable-path))
(string-match-p "^\\(clj\\|clojure\\)\\s-" neil-executable-path))
(replace-regexp-in-string
"^clj"
"^\\(clj\\|clojure\\)"
(executable-find "clj")
neil-executable-path))
(t (executable-find (or neil-executable-path "neil"))))))
exe (user-error "Cannot find 'neil' executable. Ensure either 'neil', or 'clj' with :neil alias is available")))
exe (user-error "Cannot find 'neil' executable. Ensure either 'neil', or 'clojure|clj' with :neil alias is available")))

;;;###autoload
(defun neil-find-clojure-package (&optional term)
Expand Down

0 comments on commit 97c5c90

Please sign in to comment.