diff options
-rw-r--r-- | .emacs.d/init.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 9694fd24..1add21cf 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1730,11 +1730,10 @@ the non-side windows deleted by `delete-other-windows' will also reappear." (with-eval-after-load 'esh-mode (define-key eshell-mode-map "\C-zp" #'spw/eshell-cd-project-root)) -;; Work around Emacs bugs #54976 and #54977. +;; Work around Emacs bug #54977. (with-eval-after-load 'esh-module - (dolist (module '(eshell-elecslash eshell-tramp eshell-xtra)) - (when (locate-library (format "em-%s" (substring (symbol-name module) 7))) - (add-to-list 'eshell-modules-list module)))) + (mapc (apply-partially #'add-to-list 'eshell-modules-list) + '(eshell-elecslash eshell-tramp eshell-xtra))) (spw/define-skeleton spw/eshell-libexec (eshell-mode :abbrev "le" :file "esh-mode") |