branch: externals/kiwix commit 516f5126c5eca4252f8fa0bba15b9ff99b43c7b6 Author: stardiviner <numbch...@gmail.com> Commit: stardiviner <numbch...@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)