From 96ef16b3a03e917166835359e9eb869cdaafba86 Mon Sep 17 00:00:00 2001 From: condy Date: Sat, 20 Nov 2021 12:08:54 +0800 Subject: [PATCH] eshell: remove M-h/M-u bindings In most terminal, M-u/M-l can be used to convert cases of word --- modes/eshell/evil-collection-eshell.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modes/eshell/evil-collection-eshell.el b/modes/eshell/evil-collection-eshell.el index 2877632..6610ba4 100644 --- a/modes/eshell/evil-collection-eshell.el +++ b/modes/eshell/evil-collection-eshell.el @@ -122,14 +122,11 @@ appropriate in some cases like terminals." "C" 'evil-collection-eshell-evil-change-line "d" 'evil-collection-eshell-evil-delete "D" 'evil-collection-eshell-evil-delete-line) - (evil-collection-define-key 'insert 'eshell-mode-map - ;; motion - (kbd "M-h") 'eshell-backward-argument - (kbd "M-l") 'eshell-forward-argument) - ;; TODO: What if the user changes `evil-want-C-u-delete' after this is run? + (when evil-want-C-u-delete (evil-collection-define-key 'insert 'eshell-mode-map (kbd "C-u") 'eshell-kill-input)) + (evil-collection-define-key 'visual 'eshell-mode-map ;; motion ;; TODO: This does not work with `evil-visual-line'.