summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-04-03 12:54:53 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-04-03 12:54:53 +0200
commit50c5c2ac4dc4b9693e6bb5da50b73b1021b3fedf (patch)
treef1ed628812ca8ecad8317b4d6a8db8931847743e
parent92a59795f17123e99dc8299b7d6b95298f46ac04 (diff)
downloadorg-mode-50c5c2ac4dc4b9693e6bb5da50b73b1021b3fedf.tar.gz
ol-notmuch: Allow capturing from tree view
* contrib/lisp/ol-notmuch.el (org-notmuch-store-link): Allow capturing from tree view. Reported-by: Pierre Neidhardt <mail@ambrevar.xyz> <http://lists.gnu.org/r/emacs-orgmode/2019-03/msg00235.html>
-rw-r--r--contrib/lisp/ol-notmuch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lisp/ol-notmuch.el b/contrib/lisp/ol-notmuch.el
index d6c3450..ab4ddac 100644
--- a/contrib/lisp/ol-notmuch.el
+++ b/contrib/lisp/ol-notmuch.el
@@ -72,7 +72,7 @@ Should accept a notmuch search string as the sole argument."
(defun org-notmuch-store-link ()
"Store a link to a notmuch search or message."
- (when (eq major-mode 'notmuch-show-mode)
+ (when (memq major-mode '(notmuch-show-mode notmuch-tree-mode))
(let* ((message-id (notmuch-show-get-message-id t))
(subject (notmuch-show-get-subject))
(to (notmuch-show-get-to))