(Emacs)+use eshell-mode-hook to set map
This commit is contained in:
@@ -1170,11 +1170,6 @@ pretty symbols to eshell.
|
|||||||
:general
|
:general
|
||||||
(leader
|
(leader
|
||||||
"tt" #'+shell/toggle-eshell)
|
"tt" #'+shell/toggle-eshell)
|
||||||
(general-def
|
|
||||||
:states '(insert normal)
|
|
||||||
:keymap 'eshell-mode-map
|
|
||||||
"C-j" #'eshell-next-matching-input-from-input
|
|
||||||
"C-k" #'eshell-previous-matching-input-from-input)
|
|
||||||
:init
|
:init
|
||||||
(with-eval-after-load "prog-mode"
|
(with-eval-after-load "prog-mode"
|
||||||
(+pretty/set-alist
|
(+pretty/set-alist
|
||||||
@@ -1183,6 +1178,17 @@ pretty symbols to eshell.
|
|||||||
("numberp" . "ℤ")
|
("numberp" . "ℤ")
|
||||||
("t" . "𝕋")
|
("t" . "𝕋")
|
||||||
("nil" . "∅")))
|
("nil" . "∅")))
|
||||||
|
|
||||||
|
(add-hook
|
||||||
|
'eshell-mode-hook
|
||||||
|
(proc
|
||||||
|
(interactive)
|
||||||
|
(general-def
|
||||||
|
:states '(insert normal)
|
||||||
|
:keymaps 'eshell-mode-map
|
||||||
|
"C-l" #'eshell/clear-scrollback
|
||||||
|
"C-j" #'eshell-next-matching-input-from-input
|
||||||
|
"C-k" #'eshell-previous-matching-input-from-input)))
|
||||||
:config
|
:config
|
||||||
(setq eshell-cmpl-ignore-case t
|
(setq eshell-cmpl-ignore-case t
|
||||||
eshell-cd-on-directory t
|
eshell-cd-on-directory t
|
||||||
|
|||||||
Reference in New Issue
Block a user