Function: erc--scrolltobottom-setup
erc--scrolltobottom-setup is a byte-compiled function defined in
erc-goodies.el.gz.
Signature
(erc--scrolltobottom-setup)
Documentation
Perform buffer-local setup for module scrolltobottom.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
(defun erc--scrolltobottom-setup ()
"Perform buffer-local setup for module `scrolltobottom'."
(if erc-scrolltobottom-mode
(if erc-scrolltobottom-all
(progn
(setq-local read-minibuffer-restore-windows nil)
(when (zerop scroll-conservatively)
(setq-local scroll-step 1))
(unless (eq erc-scrolltobottom-all 'relaxed)
(add-hook 'window-configuration-change-hook
#'erc--scrolltobottom-on-win-conf-change 50 t)
(add-hook 'post-command-hook
#'erc--scrolltobottom-on-post-command 50 t)))
(add-hook 'post-command-hook #'erc-scroll-to-bottom nil t))
(remove-hook 'post-command-hook #'erc-scroll-to-bottom t)
(remove-hook 'post-command-hook #'erc--scrolltobottom-on-post-command t)
(remove-hook 'window-configuration-change-hook
#'erc--scrolltobottom-on-win-conf-change t)
(kill-local-variable 'read-minibuffer-restore-windows)
(kill-local-variable 'scroll-step)
(kill-local-variable 'erc--scrolltobottom-window-info)))