Function: erc-sound-mode
erc-sound-mode is an autoloaded, interactive and byte-compiled
function defined in erc-sound.el.gz.
Signature
(erc-sound-mode &optional ARG)
Documentation
Toggle ERC sound mode.
With a prefix argument ARG, enable sound if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. In ERC sound mode, the client will respond to CTCP SOUND requests and play sound files as requested.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-sound.el.gz
;;;###autoload(autoload 'erc-sound-mode "erc-sound")
(define-erc-module sound ctcp-sound
"In ERC sound mode, the client will respond to CTCP SOUND requests
and play sound files as requested."
;; Enable:
((add-hook 'erc-ctcp-query-SOUND-hook #'erc-ctcp-query-SOUND)
(define-key erc-mode-map "\C-c\C-s" #'erc-toggle-sound))
;; Disable:
((remove-hook 'erc-ctcp-query-SOUND-hook #'erc-ctcp-query-SOUND)
(define-key erc-mode-map "\C-c\C-s" #'undefined)))