summaryrefslogtreecommitdiff
path: root/init.org
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-05-14 15:05:28 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-05-14 15:05:28 +0200
commit912989376c3ef4498bb022e2520fe3fcad835b09 (patch)
tree583786c07b533f991a19ab5eecf24347d28c98fb /init.org
parentc14e94d0da45536000125a1b63b10d2d22635978 (diff)
email: Remove my/maybe-decrypt-inline.
Diffstat (limited to 'init.org')
-rw-r--r--init.org15
1 files changed, 0 insertions, 15 deletions
diff --git a/init.org b/init.org
index 65481ac..eac922f 100644
--- a/init.org
+++ b/init.org
@@ -1160,21 +1160,6 @@ TODO: this is a big blob of email configuration. Document this properly!
;; Don't open a new window to show the results of signature validation
(setq epa-popup-info-window nil)
-(add-hook 'mu4e-view-mode-hook
- (defun my/maybe-decrypt-inline ()
- "Attempt to decrypt inline PGP messages automatically."
- (save-excursion
- (goto-char (point-min))
- (re-search-forward "-----BEGIN PGP MESSAGE-----$" nil t)
- (let ((armor-start (match-beginning 0)))
- (when armor-start
- (let ((armor-end (re-search-forward "^-----END PGP MESSAGE-----$" nil t)))
- (when armor-end
- ;; Don't ask if I want to replace the text. Just do it.
- (flet ((yes-or-no-p (&rest args) t)
- (y-or-n-p (&rest args) t))
- (epa-decrypt-armor-in-region armor-start armor-end)))))))))
-
(require 'mu4e-actions)
(add-to-list 'mu4e-view-actions
'("git am" . mu4e-action-git-apply-mbox))