Function: erc-button-mode
erc-button-mode is an autoloaded, interactive and byte-compiled
function defined in erc-button.el.gz.
Signature
(erc-button-mode &optional ARG)
Documentation
Toggle ERC button mode.
If called interactively, enable erc-button-mode(var)/erc-button-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 buttonizes all messages according to erc-button-alist.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-button.el.gz
;;;###autoload(autoload 'erc-button-mode "erc-button" nil t)
(define-erc-module button nil
"This mode buttonizes all messages according to `erc-button-alist'."
((add-hook 'erc-insert-modify-hook #'erc-button-add-buttons 30)
(add-hook 'erc-send-modify-hook #'erc-button-add-buttons 30)
(add-hook 'erc-mode-hook #'erc-button-setup 91)
(unless erc--updating-modules-p (erc-buffer-do #'erc-button-setup))
(add-hook 'erc--tab-functions #'erc-button-next)
(erc--modify-local-map t "<backtab>" #'erc-button-previous))
((remove-hook 'erc-insert-modify-hook #'erc-button-add-buttons)
(remove-hook 'erc-send-modify-hook #'erc-button-add-buttons)
(remove-hook 'erc-mode-hook #'erc-button-setup)
(remove-hook 'erc--tab-functions #'erc-button-next)
(erc--modify-local-map nil "<backtab>" #'erc-button-previous)))