Bind RET to +eshell/goto-end-of-prompt from normal mode
This command enters insert state.
This commit is contained in:
parent
c1c3a0987c
commit
e70b1af49f
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue