Bind eshell-kill-input in Evil insert state

This commit is contained in:
Brian Leung 2020-07-08 21:25:38 -07:00 committed by James N
parent 2762b00c47
commit 2e6a40974e
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,10 @@
;; 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'.