>From d93acc39c724f5e55b39804e2751c904297c26da Mon Sep 17 00:00:00 2001 From: Robert Klein Date: Mon, 8 Aug 2016 03:24:23 +0200 Subject: [PATCH 11/14] Update notmuch and notmuch-search link definitions * contrib/lisp/org-notmuch.el ("notmuch"): Update to use org-link-set-parameters. --- contrib/lisp/org-notmuch.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contrib/lisp/org-notmuch.el b/contrib/lisp/org-notmuch.el index 265742e..b77df03 100644 --- a/contrib/lisp/org-notmuch.el +++ b/contrib/lisp/org-notmuch.el @@ -65,8 +65,9 @@ Should accept a notmuch search string as the sole argument." ;; Install the link type -(org-add-link-type "notmuch" 'org-notmuch-open) -(add-hook 'org-store-link-functions 'org-notmuch-store-link) +(org-link-set-parameters "notmuch" + :follow #'org-notmuch-open + :store #'org-notmuch-store-link) (defun org-notmuch-store-link () "Store a link to a notmuch search or message." @@ -98,8 +99,9 @@ Can link to more than one message, if so all matching messages are shown." -(org-add-link-type "notmuch-search" 'org-notmuch-search-open) -(add-hook 'org-store-link-functions 'org-notmuch-search-store-link) +(org-link-set-parameters "notmuch-search" + :follow #'org-notmuch-search-open + :store #'org-notmuch-search-store-link) (defun org-notmuch-search-store-link () "Store a link to a notmuch search or message." -- 2.9.2