From 279cea5b08da2c859af769bba9e2aa850de98b7b Mon Sep 17 00:00:00 2001 From: Benjamin Andresen Date: Fri, 21 Jul 2017 17:07:17 +0200 Subject: [PATCH] Add: tools/eshell: additional familiar readline bindings --- modules/tools/eshell/config.el | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/modules/tools/eshell/config.el b/modules/tools/eshell/config.el index ec6cc56bb..c999c4996 100644 --- a/modules/tools/eshell/config.el +++ b/modules/tools/eshell/config.el @@ -40,19 +40,24 @@ "Setup eshell keybindings. This must be done in a hook because eshell redefines its keys every time `eshell-mode' is enabled." (map! :map eshell-mode-map - :n "i" #'+eshell/evil-prepend-maybe - :n "I" #'+eshell/evil-prepend - :n "a" #'+eshell/evil-append-maybe - :n "A" #'+eshell/evil-append - :n "r" #'+eshell/evil-replace-maybe - :n "R" #'+eshell/evil-replace-state-maybe - :n "c" #'+eshell/evil-change - :n "C" #'+eshell/evil-change-line - :i "" #'eshell-pcomplete - :i "C-u" #'eshell-kill-input - :i "SPC" #'self-insert-command - :i "C-a" #'eshell-bol - :i "C-d" #'+eshell/quit-or-delete-char + :n "i" #'+eshell/evil-prepend-maybe + :n "I" #'+eshell/evil-prepend + :n "a" #'+eshell/evil-append-maybe + :n "A" #'+eshell/evil-append + :n "r" #'+eshell/evil-replace-maybe + :n "R" #'+eshell/evil-replace-state-maybe + :n "c" #'+eshell/evil-change + :n "C" #'+eshell/evil-change-line + :i "" #'eshell-pcomplete + :i "C-u" #'eshell-kill-input + :i "SPC" #'self-insert-command + :i "C-a" #'eshell-bol + :i "C-d" #'+eshell/quit-or-delete-char + :i "C-k" #'kill-line + :i "C-p" #'eshell-previous-input + :i "" #'eshell-previous-input + :i "C-n" #'eshell-previous-input + :i "" #'eshell-previous-input :m "" #'+eshell/evil-append :n [remap evil-window-split] #'+eshell/split :n [remap evil-window-vsplit] #'+eshell/vsplit