Function: erc-scrolltobottom-mode
erc-scrolltobottom-mode is an interactive and byte-compiled function
defined in erc-goodies.el.gz.
Signature
(erc-scrolltobottom-mode &optional ARG)
Documentation
Toggle ERC scrolltobottom mode.
With a prefix argument ARG, enable scrolltobottom 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 prompt to stay at the end of the window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
(define-erc-module scrolltobottom nil
"This mode causes the prompt to stay at the end of the window."
((add-hook 'erc-mode-hook #'erc-add-scroll-to-bottom)
(add-hook 'erc-insert-done-hook #'erc-possibly-scroll-to-bottom)
(dolist (buffer (erc-buffer-list))
(with-current-buffer buffer
(erc-add-scroll-to-bottom))))
((remove-hook 'erc-mode-hook #'erc-add-scroll-to-bottom)
(remove-hook 'erc-insert-done-hook #'erc-possibly-scroll-to-bottom)
(dolist (buffer (erc-buffer-list))
(with-current-buffer buffer
(remove-hook 'post-command-hook #'erc-scroll-to-bottom t)))))