branch: externals/xeft commit 26389942e9cf8d4099adac32e2ce14e536c82d56 Author: Yuan Fu <caso...@gmail.com> Commit: Yuan Fu <caso...@gmail.com>
Minor change --- README.md | 6 ++++-- xeft.el | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e3d35eccf6..dbc9193101 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,10 @@ # Usage To use Xeft the note searching interface, install it and type `M-x -xeft RET` to bring up the panel. If the dynamic module isn’t compiled, -you are prompted to compile it. Refer to the next section for +xeft RET` to bring up the panel. If the dynamic module doesn’t already +exists, you are prompted to download or compile it automatically. If +you choose to download the module, no more action is required. If you +want to compile the module locally, refer to the next section for prerequisites for compiling the module. Once the xeft buffer is up, type the search phrase in the first line. diff --git a/xeft.el b/xeft.el index 6084713102..bf2632afca 100644 --- a/xeft.el +++ b/xeft.el @@ -242,11 +242,13 @@ Xeft doesn’t follow symlinks and ignores inaccessible directories." (when (not (file-exists-p xeft-database)) (mkdir xeft-database t)) (unless (require 'xapian-lite nil t) + ;; I can hide download option for non-Linux/mac users, but I’m + ;; lazy. (let* ((choice (read-char (concat "Xeft needs the dynamic module to work, " "download pre-built module " (propertize "[b]" 'face 'bold) - " (GNU/Linux and Mac only), or compile " + ", compile locally " (propertize "[c]" 'face 'bold) ", or give up " (propertize "[q]" 'face 'bold)