Variable: erc-truncate-mode

erc-truncate-mode is a customizable variable defined in erc-truncate.el.gz.

Value

nil

Documentation

Non-nil if Erc-Truncate mode is enabled.

See the erc-truncate-mode(var)/erc-truncate-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function erc-truncate-mode(var)/erc-truncate-mode(fun).

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)))