[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 49fdf02 079/192: add custom option for specifying
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 49fdf02 079/192: add custom option for specifying your native language library |
Date: |
Sat, 19 Dec 2020 00:41:37 -0500 (EST) |
branch: externals/kiwix
commit 49fdf02999c75b77d560c2b44b58837f2bd74035
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
add custom option for specifying your native language library
---
kiwix.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index 3adc442..f3936db 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -122,7 +122,9 @@
(cdr (assoc abbr kiwix-libraries-abbrev-alist)))
(defcustom kiwix-default-library "wikipedia_en_all"
- "The default kiwix library when library fragment in link not specified.")
+ "The default kiwix library when library fragment in link not specified."
+ :type 'string
+ :group 'kiwix)
;; add default key-value pair to libraries alist.
(dolist
@@ -134,6 +136,11 @@
(push cons kiwix-libraries-abbrev-alist)
)
+(defcustom kiwix-your-language-library "zh"
+ "Specify the library for your navtive language."
+ :type 'string
+ :group 'kiwix)
+
;; test
;; (kiwix-get-library-fullname "wikipedia_en")
;; (kiwix-get-library-fullname "default")
@@ -250,7 +257,7 @@ for query string and library interactively."
(kiwix-get-library-fullname (or (match-string 1 link)
"default"))
;; validate query is non-English
- (kiwix-get-library-fullname "zh")
+ (kiwix-get-library-fullname kiwix-your-language-library)
))
(query (match-string 2 link))
(url (concat
- [elpa] externals/kiwix d4fbf7b 052/192: define function ahead, (continued)
- [elpa] externals/kiwix d4fbf7b 052/192: define function ahead, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f1554ba 054/192: fix some default library abbr name., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 4968e3d 055/192: error when query is invalid., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 1b9f25b 056/192: add interactively called function., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 2e2d64d 059/192: Merge tag 'v0.4.3' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 8855ac4 060/192: delete deprecated source code files., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix fb83985 062/192: Merge branch 'master' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 45cc8ef 067/192: add some links test., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d9bab20 074/192: Merge branch 'release/v0.5.1', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix ea54acf 080/192: extract get org-mode link library to a single function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 49fdf02 079/192: add custom option for specifying your native language library,
Stefan Monnier <=
- [elpa] externals/kiwix 5cba3b5 081/192: add a test for only capitalize the first word, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 4102205 086/192: load for `org-link-set-parameters', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 7b8a799 088/192: Merge tag 'void-function_org-link-set-parameters' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix e600844 089/192: fix kiwix does not contain group., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 121d98a 093/192: fix void function org-link-set-parameters., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 686bac6 068/192: fix query validating regexp, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 47d968a 069/192: update add org-mode link functions to Org-mode 9.0, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 3dab002 077/192: only capitalize the first word of string., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6fb8354 078/192: Merge branch 'release/v0.5.2', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 43e0547 083/192: Merge branch 'release/v0.6.0', Stefan Monnier, 2020/12/19