Shell: Bind visual RET to ambrevar/eshell-append-region-to-command-line.
parent
2d5ed4e490
commit
9fb43783db
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue