summaryrefslogtreecommitdiff
path: root/lisp/epa-dired.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/epa-dired.el')
-rw-r--r--lisp/epa-dired.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/epa-dired.el b/lisp/epa-dired.el
index 945dd97b767..ab0bf7d92a2 100644
--- a/lisp/epa-dired.el
+++ b/lisp/epa-dired.el
@@ -82,6 +82,14 @@ If no one is selected, symmetric encryption will be performed. "))
(setq file-list (cdr file-list)))
(revert-buffer)))
+;;;###autoload
+(define-minor-mode epa-dired-mode
+ "Minor mode to hook EasyPG into Dired."
+ :global t :init-value nil :group 'epa-dired :version "23.1"
+ (remove-hook 'dired-mode-hook 'epa-dired-mode-hook)
+ (if epa-dired-mode
+ (add-hook 'dired-mode-hook 'epa-dired-mode-hook)))
+
(provide 'epa-dired)
;; arch-tag: 2025700b-48d0-4684-bc94-228ad1f8e9ff