Function: erc-move-to-prompt-mode
erc-move-to-prompt-mode is an autoloaded, interactive and
byte-compiled function defined in erc-goodies.el.gz.
Signature
(erc-move-to-prompt-mode &optional ARG)
Documentation
Toggle ERC move-to-prompt mode.
If called interactively, enable erc-move-to-prompt-mode(var)/erc-move-to-prompt-mode(fun) if ARG
is positive, and disable it otherwise. If called from Lisp,
enable the mode if ARG is omitted or nil.
This mode causes the point to be moved to the prompt when typing text.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
;;; Move to prompt when typing text
;;;###autoload(autoload 'erc-move-to-prompt-mode "erc-goodies" nil t)
(define-erc-module move-to-prompt nil
"This mode causes the point to be moved to the prompt when typing text."
((add-hook 'erc-mode-hook #'erc-move-to-prompt-setup)
(unless erc--updating-modules-p (erc-buffer-do #'erc-move-to-prompt-setup)))
((remove-hook 'erc-mode-hook #'erc-move-to-prompt-setup)
(dolist (buffer (erc-buffer-list))
(with-current-buffer buffer
(remove-hook 'pre-command-hook #'erc-move-to-prompt t)))))