git » emacs.d.git » commit d3cce06

projectile config

author Alan Dipert
2023-05-01 20:05:33 UTC
committer Alan Dipert
2023-05-01 20:05:33 UTC
parent 1f43c27c040d942fc187bcbc6127ac8474748832

projectile config

init.el +4 -2

diff --git a/init.el b/init.el
index ff20557..b946921 100644
--- a/init.el
+++ b/init.el
@@ -74,8 +74,10 @@
   (global-company-mode))
 
 (use-package consult
-  ;; TODO Figure out how to configure and use consult.
-  )
+  :hook (completion-list-mode . consult-preview-at-point-mode)
+  :config
+  (autoload 'projectile-project-root "projectile")
+  (setq consult-project-function (lambda (_) (projectile-project-root))))
 
 (use-package csv-mode)
 (use-package dockerfile-mode)