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 (18)
erc-button-alist | Alist of regexps matching buttons in ERC buffers. |
erc-button-buttonize-nicks | Flag indicating whether nicks should be buttonized or not. |
erc-button-face | Face used for highlighting buttons in ERC buffers. |
erc-button-google-url | URL used to search for a term. |
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-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 (20)
erc-browse-emacswiki | (THING) |
erc-browse-emacswiki-lisp | (THING) |
erc-button-add-button | (FROM TO FUN NICK-P &optional DATA REGEXP) |
erc-button-add-buttons | () |
erc-button-add-buttons-1 | (REGEXP ENTRY) |
erc-button-add-face | (FROM TO FACE) |
erc-button-add-nickname-buttons | (ENTRY) |
erc-button-beats-to-time | (BEATS) |
erc-button-click-button | (IGNORE EVENT) |
erc-button-describe-symbol | (SYMBOL-NAME) |
erc-button-disable | () |
erc-button-enable | () |
erc-button-mode | (&optional ARG) |
erc-button-next | () |
erc-button-next-function | () |
erc-button-press-button | () |
erc-button-previous | () |
erc-button-remove-old-buttons | () |
erc-button-setup | () |
erc-nick-popup | (NICK) |
Defined faces (1)
erc-button | ERC button face. |