diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2008-04-27 19:49:15 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2008-04-27 19:49:15 +0000 |
commit | bfeee9d15131df60ef028dda6ca4ab7c29e7d7d2 (patch) | |
tree | 63e31d81a53dd40a472d7d4152eadda4dedf1fd0 /lisp/epa-dired.el | |
parent | b576c5808af88b494ccc9323061d9a44e9f67284 (diff) | |
download | emacs-bfeee9d15131df60ef028dda6ca4ab7c29e7d7d2.tar.gz emacs-bfeee9d15131df60ef028dda6ca4ab7c29e7d7d2.tar.bz2 emacs-bfeee9d15131df60ef028dda6ca4ab7c29e7d7d2.zip |
* epa-file.el (auto-encryption-mode): Rename from epa-file-mode.
(epa-file-handler): Put 'safe-magic and 'operations properties.
* epa.el (epa-global-minor-modes, epa-mode, epa-menu)
(epa-menu-items): Remove.
* epa-dired.el (epa-dired-do-decrypt, epa-dired-do-verify)
(epa-dired-do-sign, epa-dired-do-encrypt): Add autoload cookie.
(epa-dired-mode, epa-global-dired-mode): Remove.
* dired.el (dired-mode-map): Bind encryption/decryption commands.
* menu-bar.el (menu-bar-encryption-decryption-menu): New menu item.
* files.el (insert-file-contents-literally): Inhibit epa-file-handler.
Diffstat (limited to 'lisp/epa-dired.el')
-rw-r--r-- | lisp/epa-dired.el | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/lisp/epa-dired.el b/lisp/epa-dired.el index a02081bd9df..0a72c014e20 100644 --- a/lisp/epa-dired.el +++ b/lisp/epa-dired.el @@ -26,23 +26,7 @@ (require 'epa) (require 'dired) -(defvar epa-dired-mode-map - (let ((keymap (make-sparse-keymap))) - (define-key keymap ":d" 'epa-dired-do-decrypt) - (define-key keymap ":v" 'epa-dired-do-verify) - (define-key keymap ":s" 'epa-dired-do-sign) - (define-key keymap ":e" 'epa-dired-do-encrypt) - keymap)) - -(defvar epa-dired-mode-hook nil) -(defvar epa-dired-mode-on-hook nil) -(defvar epa-dired-mode-off-hook nil) - ;;;###autoload -(define-minor-mode epa-dired-mode - "A minor-mode for encrypt/decrypt files with Dired." - nil " epa-dired" epa-dired-mode-map) - (defun epa-dired-do-decrypt () "Decrypt marked files." (interactive) @@ -52,6 +36,7 @@ (setq file-list (cdr file-list))) (revert-buffer))) +;;;###autoload (defun epa-dired-do-verify () "Verify marked files." (interactive) @@ -60,6 +45,7 @@ (epa-verify-file (expand-file-name (car file-list))) (setq file-list (cdr file-list))))) +;;;###autoload (defun epa-dired-do-sign () "Sign marked files." (interactive) @@ -74,6 +60,7 @@ If no one is selected, default secret key is used. " (setq file-list (cdr file-list))) (revert-buffer))) +;;;###autoload (defun epa-dired-do-encrypt () "Encrypt marked files." (interactive) @@ -86,14 +73,6 @@ If no one is selected, symmetric encryption will be performed. ")) (setq file-list (cdr file-list))) (revert-buffer))) -;;;###autoload -(define-minor-mode epa-global-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) - (if epa-global-dired-mode - (add-hook 'dired-mode-hook 'epa-dired-mode))) - (provide 'epa-dired) ;; arch-tag: 2025700b-48d0-4684-bc94-228ad1f8e9ff |