[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 6e6959b 045/192: improve custom options
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix 6e6959b 045/192: improve custom options |
Date: |
Sat, 19 Dec 2020 00:41:30 -0500 (EST) |
branch: externals/kiwix
commit 6e6959b148015ebee2b2436fc18a57aea19e21ea
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
improve custom options
Make them smarter depend on different cases.
---
kiwix.el | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/kiwix.el b/kiwix.el
index d481fba..d302aac 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -35,17 +35,32 @@
:type 'string
:group 'kiwix)
-(defcustom kiwix-server-command "/usr/lib/kiwix/bin/kiwix-serve "
+(defcustom kiwix-server-command
+ (cond
+ ((string-equal system-type "gnu/linux")
+ "/usr/lib/kiwix/bin/kiwix-serve ")
+ ((string-equal system-type "darwin")
+ (warn "You need to specify Mac OS X Kiwix path. And send a PR to my
repo."))
+ ((string-equal system-type "windows-nt")
+ (warn "You need to specify Windows Kiwix path. And send a PR to my
repo.")))
"Specify kiwix server command."
:type 'string
:group 'kiwix)
-(defcustom kiwix-default-data-profile-name "8ip89lik.default"
+(defcustom kiwix-default-data-profile-name
+ (car (directory-files
+ (concat
+ (getenv "HOME") "/.www.kiwix.org/kiwix")
+ nil
+ ".*\\.default"
+ ))
"Specify the default Kiwix data profile path."
:type 'string
:group 'kiwix)
-(defcustom kiwix-default-data-path (concat (getenv "HOME")
"/.www.kiwix.org/kiwix/" kiwix-default-data-profile-name)
+(defcustom kiwix-default-data-path
+ (concat
+ (getenv "HOME") "/.www.kiwix.org/kiwix/" kiwix-default-data-profile-name)
"Specify the default Kiwix data path."
:type 'string
:group 'kiwix)
- [elpa] externals/kiwix b585e25 026/192: move org-mode relative code to commentary, (continued)
- [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, 2020/12/19
- [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 <=
- [elpa] externals/kiwix 90ac73a 046/192: update README declaration, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f6a5f4c 048/192: Merge tag 'v0.4.0' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 160b228 049/192: fix cl-lib version, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 90658b7 050/192: support old format library name, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5bfc5a2 053/192: support more flexible library name, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d5e1ad0 057/192: add config section comments., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 38986bb 058/192: Merge branch 'release/v0.4.3', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 634b5ae 061/192: enhance function kiwix-query to support space between strings., Stefan Monnier, 2020/12/19
- [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