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:
parent
92a59795f1
commit
50c5c2ac4d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue