From a6cfcabdc6027dfbc9e8be3745619b265167758b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 22 Aug 2023 04:28:45 +0000 Subject: [PATCH] [Emacs] Make dependency of find script functions on eshell explicit --- dotfiles/emacs.d/README.org | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index bac6bb12..eb91f2f7 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -865,14 +865,19 @@ details. (not (f-directory? fullpath)))) (directory-files filepath)))) -(defun imalison:get-executables-on-path () - (mapcan 'imalison:get-executables-at-path (eshell-parse-colon-path (getenv "PATH")))) +(use-package eshell + :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 () (interactive) - (find-file (executable-find - (ido-completing-read "Select a script to edit: " - (imalison:get-executables-on-path))))) + (find-file + (executable-find + (completing-read "Select a script to edit: " + (imalison:get-executables-on-path))))) #+END_SRC ** Toggle lexical binding in the current buffer #+BEGIN_SRC emacs-lisp