diff options
| author | bh <qn+git@excalibur.computer> | 2025-12-19 21:42:23 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2025-12-19 21:42:23 +0800 |
| commit | 9354ac3a120c0945702b70db2a87defb9723c459 (patch) | |
| tree | 18304763c9799af8912afd6760097ec5ff0794b1 /config/eshell.el | |
| parent | 70e917d344f92c712a5b812ece5fa1a30a8eb687 (diff) | |
Fixed the 'e' command in eshell
Diffstat (limited to 'config/eshell.el')
| -rw-r--r-- | config/eshell.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/eshell.el b/config/eshell.el index 740c560..620388b 100644 --- a/config/eshell.el +++ b/config/eshell.el @@ -123,9 +123,13 @@ "ls -lah (all files) with optional arguments." (apply #'eshell/ls "-lah" args)) -(defun eshell/e (file) - "Open FILE in Emacs." - (find-file file)) +(defun eshell/e (&rest args) + "Open a file in Emacs." + ; (if (null args) + ; (bury-buffer) + (mapc #'find-file + (mapcar #'expand-file-name + (eshell-flatten-list (reverse args))))) ;) (defun eshell/d (&optional dir) "Open dired in DIR (or current directory)." |
