Function: epa-global-mail-mode

epa-global-mail-mode is an autoloaded, interactive and byte-compiled function defined in epa-mail.el.gz.

Signature

(epa-global-mail-mode &optional ARG)

Documentation

Minor mode to hook EasyPG into Mail mode.

This is a global minor mode. If called interactively, toggle the Epa-Global-Mail mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate (default-value \=epa-global-mail-mode)'.

The mode's hook is called both when the mode is enabled and when it is disabled.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/epa-mail.el.gz
;;; Global Mode

;;;###autoload
(define-minor-mode epa-global-mail-mode
  "Minor mode to hook EasyPG into Mail mode."
  :global t :init-value nil :group 'epa-mail :version "23.1"
  (remove-hook 'mail-mode-hook 'epa-mail-mode)
  (if epa-global-mail-mode
      (add-hook 'mail-mode-hook 'epa-mail-mode)))