turn off comint insert-goes-to-end-of-line feature (this was never a

good idea)
This commit is contained in:
ndwarshuis 2019-01-21 12:53:58 -05:00
parent 58673f3f0f
commit e035ff9c64
1 changed files with 5 additions and 5 deletions

View File

@ -3481,11 +3481,11 @@ Comint-based inferior modes often are not evil (eg =intero= and =ESS=). Configur
**** interactive functions
Some common interactive functions for comint-based modes
#+BEGIN_SRC emacs-lisp
(defun nd/comint-char-mode-evil-insert ()
"If not at the last line, go to the end of the buffer and enter insert mode. Else just enter insert mode."
(interactive)
(if (/= (line-number-at-pos (point)) (line-number-at-pos (point-max)))
(goto-char (point-max))))
;; (defun nd/comint-char-mode-evil-insert ()
;; "If not at the last line, go to the end of the buffer and enter insert mode. Else just enter insert mode."
;; (interactive)
;; (if (/= (line-number-at-pos (point)) (line-number-at-pos (point-max)))
;; (goto-char (point-max))))
(defun nd/comint-send-input-evil-insert (&optional send-input-cmd)
"Go into insert mode after calling SEND-INPUT-CMD which is usually