branch: externals/kiwix
commit 47d968adbf71bc59d1adfbabfdd82ca2a94ea47e
Author: stardiviner <[email protected]>
Commit: stardiviner <[email protected]>
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