mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
EMACS28+ gate eshell keymap fix
This commit is contained in:
@ -151,11 +151,12 @@ You should use `set-eshell-alias!' to change this.")
|
|||||||
;; is not for us mere mortals to question! Fun fact: there's a "FIXME
|
;; is not for us mere mortals to question! Fun fact: there's a "FIXME
|
||||||
;; What the hell?!" above the offending line in esh-mode.el.
|
;; What the hell?!" above the offending line in esh-mode.el.
|
||||||
;; DEPRECATED As of Emacs 28, binding keys in a hook is no longer necessary.
|
;; DEPRECATED As of Emacs 28, binding keys in a hook is no longer necessary.
|
||||||
|
(unless EMACS28+
|
||||||
(add-hook! 'eshell-mode-hook
|
(add-hook! 'eshell-mode-hook
|
||||||
(defun +eshell-fix-keymap-h ()
|
(defun +eshell-fix-keymap-h ()
|
||||||
"Undo buffer-local `eshell-mode-map', so global keybinds work."
|
"Undo buffer-local `eshell-mode-map', so global keybinds work."
|
||||||
(kill-local-variable 'eshell-mode-map)
|
(kill-local-variable 'eshell-mode-map)
|
||||||
(use-local-map eshell-mode-map))))
|
(use-local-map eshell-mode-map)))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! eshell-up
|
(use-package! eshell-up
|
||||||
|
Reference in New Issue
Block a user