emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix 47d968a 069/192: update add org-mode link functio


From: Stefan Monnier
Subject: [elpa] externals/kiwix 47d968a 069/192: update add org-mode link functions to Org-mode 9.0
Date: Sat, 19 Dec 2020 00:41:35 -0500 (EST)

branch: externals/kiwix
commit 47d968adbf71bc59d1adfbabfdd82ca2a94ea47e
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    update add org-mode link functions to Org-mode 9.0
---
 kiwix.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 3865f96..15a747c 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -280,9 +280,11 @@ for query string and library interactively."
 
 (if kiwix-support-org-mode-link
     (progn
-      (org-add-link-type "wiki" 'org-wiki-link-open 'org-wiki-link-export)
-      ;; TODO: after fix interactive store link issue. enable this adding.
-      ;; (add-hook 'org-store-link-functions 'org-wiki-store-link t)
+      (org-link-set-parameters "wiki"
+                               :follow #'org-wiki-link-open
+                               :store #'org-wiki-store-link
+                               :export #'org-wiki-link-export)
+      (add-hook 'org-store-link-functions 'org-wiki-store-link t)
 
       ;; [[Wikipedia_Local:]]
       ;; (if (and



reply via email to

[Prev in Thread] Current Thread [Next in Thread]