Bind RET to +eshell/goto-end-of-prompt from normal mode

This command enters insert state.
This commit is contained in:
Henrik Lissner 2018-05-26 19:13:15 +02:00
parent c1c3a0987c
commit e70b1af49f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 9 additions and 0 deletions

View file

@ -11,6 +11,14 @@ already there)."
(point-max)
eshell-last-output-end))))
;;;###autoload
(defun +eshell/goto-end-of-prompt ()
"Move cursor to the prompt when switching to insert mode (if point isn't
already there)."
(interactive)
(goto-char (point-max))
(evil-append 1))
;;;###autoload (autoload '+eshell:run "tools/eshell/autoload/evil" nil t)
(evil-define-command +eshell:run (command bang)
;; TODO Add COMMAND support