Variable: erc-move-to-prompt-mode
erc-move-to-prompt-mode is a customizable variable defined in
erc-goodies.el.gz.
Value
nil
Documentation
Non-nil if Erc-Move-To-Prompt mode is enabled.
See the erc-move-to-prompt-mode(var)/erc-move-to-prompt-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function erc-move-to-prompt-mode(var)/erc-move-to-prompt-mode(fun).
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)))))