summaryrefslogtreecommitdiff
path: root/org-gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-12-06 09:57:31 +0200
committerThanos Apollo <[email protected]>2024-12-06 09:57:31 +0200
commitce582310379d7dff44211e40040728c1ed957aad (patch)
tree9f2c909ea27e595d39967a9ebea5f010e4d2fdb5 /org-gnosis.el
parentcf4e914b65965aa99f06d6a04882e1cf8a4ce62a (diff)
Add org-gnosis-completing-read-func
* Function to use for completing-read. Adjusts for user that do not have a completion system enabled.
Diffstat (limited to 'org-gnosis.el')
-rw-r--r--org-gnosis.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/org-gnosis.el b/org-gnosis.el
index f2e8899..97bca05 100644
--- a/org-gnosis.el
+++ b/org-gnosis.el
@@ -57,6 +57,17 @@
:type 'boolean
:group 'org-gnosis)
+(defcustom org-gnosis-completing-read-func
+ (cond ((or (bound-and-true-p ivy-mode)
+ (bound-and-true-p helm-mode)
+ (bound-and-true-p vertico-mode)
+ (bound-and-true-p fido-mode))
+ #'completing-read)
+ (t #'ido-completing-read))
+ "Function to use for `completing-read'."
+ :type 'function
+ :group 'gnosis)
+
(defface org-gnosis-face-tags
'((t :inherit font-lock-type-face))
"Face for displaying gnosis with `org-gnosis-find'."