diff options
| -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) |
