aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Walters <markwalters1009@gmail.com>2016-09-21 16:49:18 +0100
committerDavid Bremner <david@tethera.net>2016-11-02 07:45:18 -0300
commit8a20400490df27812780b349c1805e258cbac99c (patch)
treee2e931b83c61b65e7dbefcd5c51504bdbaaebda5
parentcbeb0685c744e77fdae69b0a868916c6a87e2edb (diff)
emacs: tree: allow the user to decrypt the message pane
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.
-rw-r--r--emacs/notmuch-tree.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 1ab0810d..220c010d 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -258,6 +258,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))