[Emacs] Fix keybindings in Eshell
This commit is contained in:
parent
2c7d159e9b
commit
196df4fb44
@ -3035,18 +3035,6 @@ though.
|
|||||||
(use-package eshell
|
(use-package eshell
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:type built-in :build 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
|
:config
|
||||||
(setq eshell-prompt-function
|
(setq eshell-prompt-function
|
||||||
(lambda ()
|
(lambda ()
|
||||||
@ -3058,7 +3046,20 @@ though.
|
|||||||
<<eshell-alias-open>>
|
<<eshell-alias-open>>
|
||||||
<<eshell-alias-buffers>>
|
<<eshell-alias-buffers>>
|
||||||
<<eshell-alias-emacs>>
|
<<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
|
#+end_src
|
||||||
|
|
||||||
**** Aliases
|
**** Aliases
|
||||||
|
Loading…
Reference in New Issue
Block a user