[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 7413397 019/192: add options to whether add org-m
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 7413397 019/192: add options to whether add org-mode link support |
Date: |
Sat, 19 Dec 2020 00:41:25 -0500 (EST) |
branch: externals/kiwix
commit 74133973ef8867566b9fb8fec9e0e060ff04a8e7
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
add options to whether add org-mode link support
---
kiwix.el | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/kiwix.el b/kiwix.el
index 9b79da4..1e892f4 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -44,6 +44,16 @@
:type 'string
:group 'kiwix)
+(defcustom kiwix-support-org-mode-link-type t
+ "Add support for Org-mode Kiwix link type."
+ :type 'boolean
+ :group 'kiwix)
+
+(defcustom kiwix-support-org-mode-link-abbrev t
+ "Add support for Org-mode Kiwix link abbrev."
+ :type 'boolean
+ :group 'kiwix)
+
;; launch Kiwix server
;;;###autoload
(defun kiwix-launch-server ()
@@ -82,10 +92,12 @@
;; for open wiki search query with local application database.
(defalias 'org-wiki-link-open 'kiwix-search)
-(org-add-link-type "wiki" 'org-wiki-link-open)
+(if kiwix-support-org-mode-link-type
+ (org-add-link-type "wiki" 'org-wiki-link-open))
;; [[Wikipedia_Local:]]
(if (and
+ kiwix-support-org-mode-link-abbrev
(member '("Wikipedia_Local" .
"http://127.0.0.1:8000/wikipedia_zh_all_2015-11/A/%s.html")
org-link-abbrev-alist)
(assoc "Wikipedia_Local" org-link-abbrev-alist))
- [elpa] externals/kiwix ec62ab0 063/192: Merge branch 'release/v0.5.0', (continued)
- [elpa] externals/kiwix ec62ab0 063/192: Merge branch 'release/v0.5.0', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix a11fcd4 064/192: remove org-mode link prefix setup, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 74ce07a 065/192: fix query invalid when the query contains space, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6e85607 066/192: validate query is english or non-english., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c325402 012/192: fix add kiwix link abbrev to org-mode list, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5f60967 013/192: use browse-url to replace custom browser custom, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 53f2b72 008/192: add file kiwix-at-point.el, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 06ad0af 009/192: remove duplicate function names, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6d7bc71 010/192: change default Kiwix library, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 126b172 015/192: update defgroup and defcustom, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 7413397 019/192: add options to whether add org-mode link support,
Stefan Monnier <=
- [elpa] externals/kiwix 9c9d784 020/192: fix cl-lib dependent issue, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5d25121 021/192: fix alias function name, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix aa4ac22 023/192: improve interactive function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d684140 024/192: Quote path argument each time it's used, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f43e006 028/192: add Kiwix installation commentary, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix e527614 032/192: Merge branch 'release/v0.2.1', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 00c5a17 033/192: Merge tag 'v0.2.1' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 164cf9c 034/192: disable Wikipedia_Local link abbrev, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c3e2d85 038/192: fix query is chinese string issue, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c5df1ac 042/192: Merge branch 'release/v0.3.0', Stefan Monnier, 2020/12/19