Variable: erc-page-function
erc-page-function is a customizable variable defined in
erc-page.el.gz.
Value
nil
Documentation
A function to process a "page" request.
If nil, this prints the page message in the minibuffer and calls
beep. If non-nil, it must be a function that takes two arguments:
SENDER and MSG, both strings.
Example for your init file:
(setq erc-page-function
(lambda (sender msg)
(play-sound-file "/home/alex/elisp/erc/sounds/ni.wav")
(message "IRC Page from %s: %s" sender msg)))
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-page.el.gz
(defcustom erc-page-function nil
"A function to process a \"page\" request.
If nil, this prints the page message in the minibuffer and calls
`beep'. If non-nil, it must be a function that takes two arguments:
SENDER and MSG, both strings.
Example for your init file:
\(setq erc-page-function
(lambda (sender msg)
(play-sound-file \"/home/alex/elisp/erc/sounds/ni.wav\")
(message \"IRC Page from %s: %s\" sender msg)))"
:type '(choice (const nil)
(function)))