Function: erc-toggle-sound

erc-toggle-sound is an interactive and byte-compiled function defined in erc-sound.el.gz.

Signature

(erc-toggle-sound &optional ARG)

Documentation

Toggle playing sounds on and off.

With positive argument, turns them on. With any other argument turns sounds off.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-sound.el.gz
(defun erc-toggle-sound (&optional arg)
  "Toggle playing sounds on and off.
With positive argument, turns them on.  With any other argument
turns sounds off."
  (interactive "P")
  (cond ((and (numberp arg) (> arg 0))
	 (setq erc-play-sound t))
	(arg (setq erc-play-sound nil))
	(t (setq erc-play-sound (not erc-play-sound))))
  (message "ERC sound is %s" (if erc-play-sound "ON" "OFF")))