Move point to eshell prompt when switching to insert mode

This advice was broken (and superseded) by changes upstream in
evil-collection-eshell.
This commit is contained in:
Henrik Lissner 2020-06-05 13:08:01 -04:00
parent 1d99b63bd8
commit d93b789ef5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -118,10 +118,6 @@ You should use `set-eshell-alias!' to change this.")
(append eshell-command-aliases-list (append eshell-command-aliases-list
+eshell-aliases)))) +eshell-aliases))))
(when (featurep! :editor evil +everywhere)
(advice-add #'evil-collection-eshell-next-prompt-on-insert
:override #'+eshell-goto-prompt-on-insert-a))
(add-hook! 'eshell-first-time-mode-hook (add-hook! 'eshell-first-time-mode-hook
(defun +eshell-init-keymap-h () (defun +eshell-init-keymap-h ()
;; Keys must be bound in a hook because eshell resets its keymap every ;; Keys must be bound in a hook because eshell resets its keymap every