Add maybe.el dependency to fn in prelude.el
Not adding it as a top-level dependency since maybe.el depends on on prelude.el. This shouldn't be a circular dependency when the requirement happens in the function's scope though.
This commit is contained in:
parent
22968046b7
commit
5399b4bd03
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ This is a wrapper around `start-process' that has an API that resembles
|
|||
(defun prelude/executable-exists? (name)
|
||||
"Return t if CLI tool NAME exists according to `exec-path'."
|
||||
(let ((file (locate-file name exec-path)))
|
||||
(require 'maybe)
|
||||
(if (maybe/some? file)
|
||||
(f-exists? file)
|
||||
nil)))
|
||||
|
|
Loading…
Reference in a new issue