diff --git a/emacs/init.el b/emacs/init.el index ada8cb6..e1a196c 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -332,11 +332,12 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')." ;; Replace bindings. Lazily loaded due by `use-package'. :bind (("C-x b" . consult-buffer) ("C-x C-b" . consult-buffer) - ("C-x p g" . consult-ripgrep) - ("C-x p b" . consult-project-buffer) - ("C-x p F" . consult-fd) ("M-i" . consult-imenu) - ("M-y" . consult-yank-from-kill-ring)) + ("M-y" . consult-yank-from-kill-ring) + :map project-prefix-map + ("g" . consult-ripgrep) + ("b" . consult-project-buffer) + ("F" . consult-fd)) ;; Enable automatic preview at point in the *Completions* buffer. This is ;; relevant when you use the default completion UI. @@ -649,6 +650,12 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')." ;;;; Project (use-package project + :custom + (project-switch-commands + '((project-find-file "Find file") + (consult-ripgrep "Ripgrep") + (project-eshell "Eshell") + (project-any-command "Other"))) :config ;; Make project.el recognize directories with a .project file as project roots (add-to-list 'project-vc-extra-root-markers ".project"))