diff options
| author | jao <jao@gnu.org> | 2026-02-17 00:04:52 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-02-17 00:04:52 +0000 |
| commit | ba237643320ab3375e42e0e3ec76ec88c9d21162 (patch) | |
| tree | 599570660f3ba13df5bef611200bc6dfb0191b8f | |
| parent | 84f43a6088886a5d37dc51fd6dbfbf217df3c2b1 (diff) | |
| download | elibs-ba237643320ab3375e42e0e3ec76ec88c9d21162.tar.gz elibs-ba237643320ab3375e42e0e3ec76ec88c9d21162.tar.bz2 | |
consult-spotlight
| -rw-r--r-- | init.el | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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) |
