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

[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



reply via email to

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