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
  ((unless erc--updating-modules-p
     (erc-buffer-do #'erc-desktop-notifications--setup))
   (add-hook 'erc-mode-hook #'erc-desktop-notifications--setup))
  ;; Disable
  ((erc-buffer-do #'erc-desktop-notifications--setup)
   (remove-hook 'erc-mode-hook #'erc-desktop-notifications--setup)))