0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:07:52 +00:00

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>
This commit is contained in:
Nicolas Goaziou 2019-04-03 12:54:53 +02:00
parent 92a59795f1
commit 50c5c2ac4d

View file

@ -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))