diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-04-03 12:54:53 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-04-03 12:54:53 +0200 |
commit | 50c5c2ac4dc4b9693e6bb5da50b73b1021b3fedf (patch) | |
tree | f1ed628812ca8ecad8317b4d6a8db8931847743e | |
parent | 92a59795f17123e99dc8299b7d6b95298f46ac04 (diff) | |
download | org-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.el | 2 |
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)) |