Adjust eshell bindings
I've now made the hook a function, so reloading this snippet will not add useless extra functions to the hook. Also a eshell/goto binding.
This commit is contained in:
@@ -1938,28 +1938,28 @@ them.
|
|||||||
(interactive)
|
(interactive)
|
||||||
(eshell/clear-scrollback)
|
(eshell/clear-scrollback)
|
||||||
(eshell-send-input))
|
(eshell-send-input))
|
||||||
|
|
||||||
(add-hook
|
(add-hook
|
||||||
'eshell-mode-hook
|
'eshell-mode-hook
|
||||||
(proc
|
(defun +eshell/--setup-keymap nil
|
||||||
(interactive)
|
(interactive)
|
||||||
;; (nmap
|
(general-def
|
||||||
;; :keymaps 'eshell-mode-map
|
:states '(normal insert visual)
|
||||||
;; "0" #'eshell-bol
|
:keymaps 'eshell-mode-map
|
||||||
;; "I" (proc (interactive)
|
"M-j" #'eshell-next-prompt
|
||||||
;; (eshell-bol)
|
"M-k" #'eshell-previous-prompt
|
||||||
;; (evil-insert 0)))
|
"C-j" #'eshell-next-matching-input-from-input
|
||||||
(general-def
|
"C-k" #'eshell-previous-matching-input-from-input)
|
||||||
:states '(normal insert visual)
|
|
||||||
:keymaps 'eshell-mode-map
|
(local-leader
|
||||||
"M-j" #'eshell-next-prompt
|
:keymaps 'eshell-mode-map
|
||||||
"M-k" #'eshell-previous-prompt
|
"g" (proc (interactive)
|
||||||
"C-j" #'eshell-next-matching-input-from-input
|
(let ((buffer (current-buffer)))
|
||||||
"C-k" #'eshell-previous-matching-input-from-input
|
(eshell/goto)
|
||||||
"M-c" #'+eshell/good-clear)
|
(with-current-buffer buffer
|
||||||
(local-leader
|
(eshell-send-input))))
|
||||||
:keymaps 'eshell-mode-map
|
"c" #'+eshell/good-clear
|
||||||
"c" #'+eshell/good-clear
|
"k" #'eshell-kill-process))))
|
||||||
"k" #'eshell-kill-process))))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
*** EShell prompt
|
*** EShell prompt
|
||||||
Here I use my external library
|
Here I use my external library
|
||||||
|
|||||||
Reference in New Issue
Block a user