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.

If called interactively, enable erc-sound-mode(var)/erc-sound-mode(fun) 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

erc-ctcp-sound-mode

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-sound.el.gz
;;;###autoload(put 'ctcp-sound 'erc--module 'sound)
;;;###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)))