File: erc-button.el.html
Heavily borrowed from gnus-art.el. Thanks to the original authors.
This buttonizes nicks and other stuff to make it all clickable.
To enable, add to your init file:
(require 'erc-button)
(erc-button-mode 1)
Todo:
* Rewrite all this to do the same, but use button.el. Why?
button.el is much faster, and much more elegant, and solves the
problem we get with large buffers and a large erc-button-marker-list.
Defined variables (27)
erc-button--fallback-cmem-function | Function to determine channel member if not found in the usual places. |
erc-button--has-nickname-entry | Whether ‘erc-button-alist’ contains a legacy ‘nicknames’ entry. |
erc-button--modify-nick-function | Function to possibly modify aspects of nick being buttonized. |
erc-button--nick-popup-alist | Internally controlled items for ‘erc-nick-popup-alist’. |
erc-button--phantom-users-mode | Non-nil if Erc-Button--Phantom-Users mode is enabled. |
erc-button--phantom-users-mode-hook | Hook run after entering or leaving ‘erc-button--phantom-users-mode’. |
erc-button--prev-next-predicate-functions | Abnormal hook whose members can return non-nil to continue searching. |
erc-button-alist | Alist of regexps matching buttons in ERC buffers. |
erc-button-buttonize-nicks | Flag indicating whether nicks should be buttonized. |
erc-button-face | Face used for highlighting buttons in ERC buffers. |
erc-button-google-url | URL used to search for a term. |
erc-button-highlight-nick-once | Messages for which to buttonize only the first nick occurrence. |
erc-button-keymap | Local keymap for ERC buttons. |
erc-button-keys-added | Internal variable used to keep track of whether we’ve added the |
erc-button-mode | Non-nil if Erc-Button mode is enabled. |
erc-button-mode-hook | Hook run after entering or leaving ‘erc-button-mode’. |
erc-button-mouse-face | Face used for mouse highlighting in ERC buffers. |
erc-button-nickname-callback-function | Escape hatch for users needing a non-standard nick-button callback. |
erc-button-nickname-face | Face used for ERC nickname buttons. |
erc-button-rfc-url | URL used to browse RFC references. |
erc-button-search-url | URL used to search for a term. |
erc-button-syntax-table | Syntax table used when buttonizing messages. |
erc-button-url-regexp | Regular expression that matches URLs. |
erc-button-wrap-long-urls | If non-nil, "long" URLs matching ‘erc-button-url-regexp’ will be wrapped. |
erc-emacswiki-lisp-url | URL of the EmacsWiki Elisp area. |
erc-emacswiki-url | URL of the EmacsWiki website. |
erc-nick-popup-alist | An alist of possible actions to take on a nickname. |
Defined functions (81)
Defined faces (2)
erc-button | ERC button face. |
erc-button-nick-default-face | Default face for a buttonized nickname. |