From 912989376c3ef4498bb022e2520fe3fcad835b09 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 14 May 2020 15:05:28 +0200 Subject: email: Remove my/maybe-decrypt-inline. --- init.org | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'init.org') 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)) -- cgit v1.2.3