From 659ea0e833a263a6dfa51769fd8099d9636577e0 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 5 Oct 2023 13:48:09 +0100 Subject: drop old workaround for Emacs bug #56976 --- .emacs.d/init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.emacs.d/init.el') 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") -- cgit v1.2.3