Function: erc-add-scroll-to-bottom
erc-add-scroll-to-bottom is a byte-compiled function defined in
erc-goodies.el.gz.
Signature
(erc-add-scroll-to-bottom)
Documentation
A hook function for erc-mode-hook to recenter output at bottom of window.
If you find that ERC hangs when using this function, try customizing
the value of erc-input-line-position.
This works whenever scrolling happens, so it's added to
window-scroll-functions rather than erc-insert-post-hook.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
(defun erc-add-scroll-to-bottom ()
"A hook function for `erc-mode-hook' to recenter output at bottom of window.
If you find that ERC hangs when using this function, try customizing
the value of `erc-input-line-position'.
This works whenever scrolling happens, so it's added to
`window-scroll-functions' rather than `erc-insert-post-hook'."
(add-hook 'post-command-hook #'erc-scroll-to-bottom nil t))