Variable: auto-encryption-mode
auto-encryption-mode is a customizable variable defined in
epa-hook.el.gz.
Value
t
Documentation
Non-nil if Auto-Encryption mode is enabled.
See the auto-encryption-mode(var)/auto-encryption-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 auto-encryption-mode(var)/auto-encryption-mode(fun).
This variable was added, or its default value changed, in Emacs 23.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/epa-hook.el.gz
(define-minor-mode auto-encryption-mode
"Toggle automatic file encryption/decryption (Auto Encryption mode)."
:global t :init-value t :group 'epa-file :version "23.1"
;; At the point where the defcustom is evaluated,
;; the corresponding function isn't defined yet, so
;; custom-initialize-set would signal an error.
:initialize #'custom-initialize-after-file-load
(setq file-name-handler-alist
(delq epa-file-handler file-name-handler-alist))
(remove-hook 'find-file-hook 'epa-file-find-file-hook)
(setq auto-mode-alist (delq epa-file-auto-mode-alist-entry
auto-mode-alist))
(when auto-encryption-mode
(setq file-name-handler-alist
(cons epa-file-handler file-name-handler-alist))
(add-hook 'find-file-hook 'epa-file-find-file-hook)
(setq auto-mode-alist (cons epa-file-auto-mode-alist-entry
auto-mode-alist))))