Evil/Eshell: Fix RET binding

master
Pierre Neidhardt 2019-02-11 19:40:49 +01:00
parent 45575ad88d
commit 7de32bafd1
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,10 @@
(evil-define-key 'normal map "m" 'ambrevar/elfeed-add-bookmark)))
;; Eshell
(with-eval-after-load 'init-eshell
(defun ambrevar/evil-eshell ()
(evil-define-key 'visual eshell-mode-map (kbd "<return>") 'ambrevar/eshell-append-region-to-command-line))
(with-eval-after-load 'init-eshell
;; Eshell bindings must be initializeed in the mode hook.
(add-hook 'eshell-mode-hook 'ambrevar/evil-eshell))
(provide 'init-evil)