Function: erc-move-to-prompt-mode

erc-move-to-prompt-mode is an 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.

With a prefix argument ARG, enable move-to-prompt 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
(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)
   (dolist (buffer (erc-buffer-list))
     (with-current-buffer buffer
       (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)))))