From 0aad539c541d4c17cd1ba2c414902a859419efee Mon Sep 17 00:00:00 2001 From: Suvayu Ali Date: Wed, 16 Jul 2014 18:17:56 +0200 Subject: [PATCH 2/2] contrib/lisp/org-notmuch.el: new notmuch open function * contrib/lisp/org-notmuch.el: org-notmuch-tree-follow-link: New function, can be used to follow notmuch or notmuch-search links. --- contrib/lisp/org-notmuch.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/lisp/org-notmuch.el b/contrib/lisp/org-notmuch.el index e6dbfa6..ae9b50b 100644 --- a/contrib/lisp/org-notmuch.el +++ b/contrib/lisp/org-notmuch.el @@ -121,6 +121,13 @@ Can link to more than one message, if so all matching messages are shown." (require 'notmuch) (notmuch-search (org-link-unescape search))) + + +(defun org-notmuch-tree-follow-link (search) + "Follow a notmuch link by displaying SEARCH in notmuch-tree mode." + (require 'notmuch) + (notmuch-tree (org-link-unescape search))) + (provide 'org-notmuch) ;;; org-notmuch.el ends here -- 1.9.3