[Emacs] Make dependency of find script functions on eshell explicit
This commit is contained in:
parent
6e562d19d5
commit
a6cfcabdc6
@ -865,13 +865,18 @@ details.
|
|||||||
(not (f-directory? fullpath))))
|
(not (f-directory? fullpath))))
|
||||||
(directory-files filepath))))
|
(directory-files filepath))))
|
||||||
|
|
||||||
(defun imalison:get-executables-on-path ()
|
(use-package eshell
|
||||||
(mapcan 'imalison:get-executables-at-path (eshell-parse-colon-path (getenv "PATH"))))
|
:commands (eshell-parse-colon-path imalison:get-executables-on-path)
|
||||||
|
:config
|
||||||
|
(defun imalison:get-executables-on-path ()
|
||||||
|
(mapcan 'imalison:get-executables-at-path
|
||||||
|
(eshell-parse-colon-path (getenv "PATH")))))
|
||||||
|
|
||||||
(defun imalison:edit-script ()
|
(defun imalison:edit-script ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file (executable-find
|
(find-file
|
||||||
(ido-completing-read "Select a script to edit: "
|
(executable-find
|
||||||
|
(completing-read "Select a script to edit: "
|
||||||
(imalison:get-executables-on-path)))))
|
(imalison:get-executables-on-path)))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Toggle lexical binding in the current buffer
|
** Toggle lexical binding in the current buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user