summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-10-05 13:48:09 +0100
committerSean Whitton <spwhitton@spwhitton.name>2023-10-06 13:59:08 +0100
commit659ea0e833a263a6dfa51769fd8099d9636577e0 (patch)
tree245e3ddfd3fcd9b4c9f92cc163270a3824cfd763
parentec4e72bb63832f2a97343692974bcb8e0e495d77 (diff)
downloaddotfiles-659ea0e833a263a6dfa51769fd8099d9636577e0.tar.gz
drop old workaround for Emacs bug #56976
-rw-r--r--.emacs.d/init.el7
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")