[Emacs] Fix keybindings in Eshell

This commit is contained in:
Lucien Cartier-Tilet 2022-03-15 18:25:38 +01:00
parent 2c7d159e9b
commit 196df4fb44
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -3035,18 +3035,6 @@ though.
(use-package eshell
:defer t
:straight (:type built-in :build t)
:general
(phundrak/evil
:keymaps 'eshell-mode-map
"c" #'evil-backward-char
"t" #'evil-next-line
"s" #'evil-previous-line
"r" #'evil-forward-char)
(general-define-key
:keymaps 'eshell-mode-map
:states 'insert
"C-a" #'eshell-bol
"C-e" #'end-of-line)
:config
(setq eshell-prompt-function
(lambda ()
@ -3058,7 +3046,20 @@ though.
<<eshell-alias-open>>
<<eshell-alias-buffers>>
<<eshell-alias-emacs>>
<<eshell-alias-mkcd>>)
<<eshell-alias-mkcd>>
:general
(phundrak/evil
:keymaps 'eshell-mode-map
[remap evil-collection-eshell-evil-change] #'evil-backward-char
"t" #'evil-next-line
"s" #'evil-previous-line
"r" #'evil-forward-char
"h" #'evil-collection-eshell-evil-change)
(general-define-key
:keymaps 'eshell-mode-map
:states 'insert
"C-a" #'eshell-bol
"C-e" #'end-of-line))
#+end_src
**** Aliases