[PATCH 1/2] emacs: tree: allow the user to decrypt the message pane

Mark Walters markwalters1009 at gmail.com
Wed Sep 21 08:49:18 PDT 2016


This makes $ in the tree pane toggle decryption in the message
pane. Without this the user can only decrypt the message pane by
switching to it, or by setting decryption on globally by setting
notmuch-crypto-process-mime to t.
---

This seems an obvious extension. It may not be very useful as most
people who get encrypted messages probably set
notmuch-crypto-process-mime to t.

As an aside might it be worth making that the default
(notmuch-crypto-process-mime equal to t)?

Best wishes

Mark



emacs/notmuch-tree.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 5431384..8285354 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -255,6 +255,7 @@ FUNC."
     (define-key map (kbd "<backtab>")  (notmuch-tree-to-message-pane #'notmuch-show-previous-button))
     (define-key map (kbd "TAB") (notmuch-tree-to-message-pane #'notmuch-show-next-button))
     (define-key map "e" (notmuch-tree-to-message-pane #'notmuch-tree-button-activate))
+    (define-key map "$" (notmuch-tree-to-message-pane #'notmuch-show-toggle-process-crypto))
 
     ;; bindings from show (or elsewhere) but we close the message pane first.
     (define-key map "f" (notmuch-tree-close-message-pane-and #'notmuch-show-forward-message))
-- 
2.1.4



More information about the notmuch mailing list