Shell: Bind visual RET to ambrevar/eshell-append-region-to-command-line.

master
Pierre Neidhardt 2020-06-26 17:41:47 +02:00
parent 2d5ed4e490
commit 9fb43783db
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@
;; Eshell
(defun ambrevar/evil-eshell ()
(evil-define-key 'visual eshell-mode-map (kbd "<return>") 'ambrevar/eshell-append-region-to-command-line))
(evil-define-key 'visual eshell-mode-map (kbd "<return>") 'ambrevar/eshell-append-region-to-command-line)
(evil-define-key 'visual shell-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))