[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 1782487 029/192: re-enable org-mode wiki link sup
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 1782487 029/192: re-enable org-mode wiki link support |
Date: |
Sat, 19 Dec 2020 00:41:27 -0500 (EST) |
branch: externals/kiwix
commit 178248787c62a4cae1adccfa0179f935573734a2
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
re-enable org-mode wiki link support
---
kiwix.el | 39 ++++++++++++++++++++-------------------
1 file changed, 20 insertions(+), 19 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index b65c2d1..2e1a380 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -22,25 +22,6 @@
;; [M-x kiwix-launch-server] to launch Kiwix server.
;; [M-x kiwix-at-point] to search the word under point or the region selected
string.
-
-;; ;;; Support Org-mode
-;; ;; [[wiki:]]
-;; ;; for open wiki search query with local application database.
-;; (defalias 'org-wiki-link-open 'kiwix-query)
-
-;; (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))
-
-;; (setq org-link-abbrev-alist
-;; (cons '("Wikipedia_Local" .
"http://127.0.0.1:8000/wikipedia_zh_all_2015-11/A/%s.html")
org-link-abbrev-alist))
-;; )
-
;;; Code:
@@ -133,6 +114,26 @@ for query string and library interactively."
kiwix-libraries)))))
(kiwix-query query-string library)))
+
+
+;;; Support Org-mode
+;; [[wiki:]]
+;; for open wiki search query with local application database.
+(defalias 'org-wiki-link-open 'kiwix-query)
+
+(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))
+
+ (setq org-link-abbrev-alist
+ (cons '("Wikipedia_Local" .
"http://127.0.0.1:8000/wikipedia_zh_all_2015-11/A/%s.html")
org-link-abbrev-alist))
+ )
+
(provide 'kiwix)
- [elpa] externals/kiwix e7edd5e 004/192: rename old kiwix.el to kiwix-http.el, (continued)
- [elpa] externals/kiwix e7edd5e 004/192: rename old kiwix.el to kiwix-http.el, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 06c466e 011/192: fix Kiwix query need to capitalized, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix e54e80a 016/192: update function variables, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 06b5d36 027/192: Merge branch 'master' of github.com:stardiviner/kiwix.el, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 377f3fa 014/192: add package metadata, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d0da8cd 017/192: make package description clear, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix bd0fe09 018/192: setq-local depend on cl-lib, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5990cc7 022/192: improve query function to specify library, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 511a11c 025/192: Merge pull request #1 from purcell/patch-1, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix b585e25 026/192: move org-mode relative code to commentary, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 1782487 029/192: re-enable org-mode wiki link support,
Stefan Monnier <=
- [elpa] externals/kiwix cfef75f 030/192: improve org-mode wiki: link support, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix af10bd6 031/192: fix org link exporting encoding, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 76c0b5a 035/192: temporarily disable org-mode link store prompt issue, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix e35ef5e 036/192: Merge branch 'release/v0.2.2', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 96e8d37 037/192: Merge tag 'v0.2.2' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 97822f1 039/192: convert between librarie full name and abbrev., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 9774c61 040/192: update elisp link matching regexp, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix c09f7ad 041/192: optimize open link function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6e6959b 045/192: improve custom options, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 90ac73a 046/192: update README declaration, Stefan Monnier, 2020/12/19