diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-27 21:56:06 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-27 21:56:06 +0100 |
commit | 86f1cf1075ed15e3b7a91b881006d42939eb2947 (patch) | |
tree | bed2506a11d2a77dc526359e85e7b583c234934e /Emacs/.config/emacs | |
parent | 22b59f9dce81d0aaf1b6347eb46abe3fe2abfe5e (diff) | |
download | dotfiles-86f1cf1075ed15e3b7a91b881006d42939eb2947.tar.gz dotfiles-86f1cf1075ed15e3b7a91b881006d42939eb2947.tar.bz2 dotfiles-86f1cf1075ed15e3b7a91b881006d42939eb2947.zip |
(Emacs)+use eshell-mode-hook to set map
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 9080922..53cc686 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1170,11 +1170,6 @@ pretty symbols to eshell. :general (leader "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 (with-eval-after-load "prog-mode" (+pretty/set-alist @@ -1183,6 +1178,17 @@ pretty symbols to eshell. ("numberp" . "ℤ") ("t" . "𝕋") ("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 (setq eshell-cmpl-ignore-case t eshell-cd-on-directory t |