Function: erc-stamp-mode

erc-stamp-mode is an interactive and byte-compiled function defined in erc-stamp.el.gz.

Signature

(erc-stamp-mode &optional ARG)

Documentation

Toggle ERC stamp mode.

If called interactively, enable erc-stamp-mode(var)/erc-stamp-mode(fun) if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.

This mode timestamps messages in the channel buffers.

Key Bindings

Aliases

erc-timestamp-mode

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-stamp.el.gz
;; New libraries should only autoload the minor mode for a module's
;; preferred name (rather than its alias).

;;;###autoload(put 'timestamp 'erc--module 'stamp)
;;;###autoload(autoload 'erc-timestamp-mode "erc-stamp" nil t)
(define-erc-module stamp timestamp
  "This mode timestamps messages in the channel buffers."
  ((add-hook 'erc-mode-hook #'erc-stamp--setup)
   (add-hook 'erc-insert-modify-hook #'erc-add-timestamp 70)
   (add-hook 'erc-send-modify-hook #'erc-add-timestamp 70)
   (add-hook 'erc-mode-hook #'erc-stamp--recover-on-reconnect)
   (unless erc--updating-modules-p (erc-buffer-do #'erc-stamp--setup)))
  ((remove-hook 'erc-mode-hook #'erc-stamp--setup)
   (remove-hook 'erc-insert-modify-hook #'erc-add-timestamp)
   (remove-hook 'erc-send-modify-hook #'erc-add-timestamp)
   (remove-hook 'erc-mode-hook #'erc-stamp--recover-on-reconnect)
   (erc-buffer-do #'erc-stamp--setup)))