Function: erc-truncate-mode
erc-truncate-mode is an autoloaded, interactive and byte-compiled
function defined in erc-truncate.el.gz.
Signature
(erc-truncate-mode &optional ARG)
Documentation
Toggle ERC truncate mode.
With a prefix argument ARG, enable truncate if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or 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.
Key Bindings
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)))