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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix 516f512 006/192: update defcustom properties


From: Stefan Monnier
Subject: [elpa] externals/kiwix 516f512 006/192: update defcustom properties
Date: Sat, 19 Dec 2020 00:41:22 -0500 (EST)

branch: externals/kiwix
commit 516f5126c5eca4252f8fa0bba15b9ff99b43c7b6
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    update defcustom properties
---
 kiwix-http.el | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/kiwix-http.el b/kiwix-http.el
index db57811..71f0688 100644
--- a/kiwix-http.el
+++ b/kiwix-http.el
@@ -8,12 +8,28 @@
 ;;; Code:
 
 
+(require 'cl-lib)
+
+;; FIXME:
+;; should use a standard where function to find path.
+;; you may can define a function instead or a constant holding the relative 
path, then make use of it when needed.
 (defcustom kiwix-search-command "/usr/lib/kiwix/bin/kiwix-search"
   "The kiwix-search command path."
-  :group 'kiwix)
+  :type 'string
+  :group 'kiwix
+  :safe 'stringp)
 (defcustom kiwix-data-profile-path "~/.www.kiwix.org/kiwix/8ip89lik.default/"
   "The kiwix profile data directory."
-  :group 'kiwix)
+  :type 'string
+  :group 'kiwix
+  :safe 'stringp)
+
+;; TODO: replace `browse-url'
+(defcustom kiwix-browser-function 'browse-url-conkeror
+  "Specify browser function to open kiwix search result."
+  :type 'function
+  :group 'kiwix
+  :safe 'functionp)
 
 (defvar kiwix-data-index-path nil)
 



reply via email to

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