summaryrefslogtreecommitdiff
path: root/modes/eshell
diff options
context:
space:
mode:
authorcondy <condy0919@gmail.com>2021-11-20 12:08:54 +0800
committercondy <condy0919@gmail.com>2021-11-20 12:08:54 +0800
commit96ef16b3a03e917166835359e9eb869cdaafba86 (patch)
treef45f8e83c67e583d3e560d21947ac889bb7f607b /modes/eshell
parenta81b6c8f5537b3646e6a66a6e60ec634848d1926 (diff)
eshell: remove M-h/M-u bindings
In most terminal, M-u/M-l can be used to convert cases of word
Diffstat (limited to 'modes/eshell')
-rw-r--r--modes/eshell/evil-collection-eshell.el7
1 files 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'.