Bläddra i källkod

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>
Nicolas Goaziou 6 år sedan
förälder
incheckning
50c5c2ac4d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      contrib/lisp/ol-notmuch.el

+ 1 - 1
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))