summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)