diff --git a/.config/emacs/config.org b/.config/emacs/config.org index a5053e4..85a0233 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -232,8 +232,14 @@ Install and configure packages. (use-package marginalia :after selectrum :config - (marginalia-mode) - (setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light))) + (setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light)) + (marginalia-mode)) + +(use-package consult + :after selectrum + :config + (autoload 'projectile-project-root "projectile") + (setq consult-project-root-function #'projectile-project-root)) (use-package avy :defer t) @@ -1786,9 +1792,12 @@ General.el ~leader key binds. ;; Search "s" '(:ignore t :which-key "search") "s a" '(avy-goto-char-timer :which-key "Avy goto char") - "s b" '(bookmark-jump :which-key "Jump to bookmark") + "s b" '(consult-line :which-key "Search buffer") + "s f" '(consult-find :which-key "Search file") "s l" '(avy-goto-line :which-key "Avy goto line") - "s s" '(evil-ex-nohighlight :which-key "Stop search") + "s m" '(bookmark-jump :which-key "Jump to bookmark") + "s p" '(consult-grep :which-key "Search project") + "s q" '(evil-ex-nohighlight :which-key "Stop search") ;; Tabs / toggle "t" '(:ignore t :which-key "tabs/toggle")