summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-02-17 00:04:52 +0000
committerjao <jao@gnu.org>2026-02-17 00:04:52 +0000
commitba237643320ab3375e42e0e3ec76ec88c9d21162 (patch)
tree599570660f3ba13df5bef611200bc6dfb0191b8f
parent84f43a6088886a5d37dc51fd6dbfbf217df3c2b1 (diff)
downloadelibs-ba237643320ab3375e42e0e3ec76ec88c9d21162.tar.gz
elibs-ba237643320ab3375e42e0e3ec76ec88c9d21162.tar.bz2
consult-spotlight
-rw-r--r--init.el27
1 files changed, 27 insertions, 0 deletions
diff --git a/init.el b/init.el
index 367427e..321b867 100644
--- a/init.el
+++ b/init.el
@@ -890,6 +890,33 @@
:bind (("s-r" . #'jao-transient-recoll)))
+;;;; alternative (mac): consult-spotlight
+
+(jao-when-darwin
+ (use-package consult-spotlight
+ :ensure t
+ :config
+ (defun jao-consult-spotlight-docs ()
+ (interactive)
+ (consult-spotlight "~/Documents"))
+
+ (defun jao-consult-spotlight-mail ()
+ (interactive)
+ (consult-spotlight "~/Mail"))
+
+ (defun jao-consult-spotlight-notes ()
+ (interactive)
+ (consult-spotlight jao-org-notes-dir))
+
+ (transient-define-prefix jao-transient-spotlight ()
+ ["Consult recoll queries"
+ ("s" "everywhere" consult-spotlight)
+ ("n" "on notes" jao-consult-spotlight-notes)
+ ("d" "on docs" jao-consult-spotlight-docs)
+ ("m" "on messages" jao-consult-spotlight-mail)])
+
+ :bind (("s-s" . jao-transient-spotlight))))
+
;;; Buffers
;;;; cursor and mark
(transient-mark-mode -1)