Variable: erc-truncate-mode-hook
erc-truncate-mode-hook is a customizable variable defined in
erc-truncate.el.gz.
Value
nil
Documentation
Hook run after entering or leaving erc-truncate-mode(var)/erc-truncate-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-truncate.el.gz
;;;###autoload(autoload 'erc-truncate-mode "erc-truncate" nil t)
(define-erc-module truncate nil
"Truncate a query buffer if it gets too large.
This prevents the query buffer from getting too large, which can
bring any grown Emacs to its knees after a few days worth of
tracking heavy-traffic channels."
;;enable
((add-hook 'erc-insert-post-hook #'erc-truncate-buffer))
;; disable
((remove-hook 'erc-insert-post-hook #'erc-truncate-buffer)))