Variable: erc-notifications-mode

erc-notifications-mode is a customizable variable defined in erc-desktop-notifications.el.gz.

Value

nil

Documentation

Non-nil if Erc-Notifications mode is enabled.

See the erc-notifications-mode(var)/erc-notifications-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function erc-notifications-mode(var)/erc-notifications-mode(fun).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-desktop-notifications.el.gz
;;;###autoload(autoload 'erc-notifications-mode "erc-desktop-notifications" "" t)
(define-erc-module notifications nil
  "Send notifications on private message reception and mentions."
  ;; Enable
  ((add-hook 'erc-server-PRIVMSG-functions #'erc-notifications-PRIVMSG)
   (add-hook 'erc-text-matched-hook #'erc-notifications-notify-on-match))
  ;; Disable
  ((remove-hook 'erc-server-PRIVMSG-functions #'erc-notifications-PRIVMSG)
   (remove-hook 'erc-text-matched-hook #'erc-notifications-notify-on-match)))