branch: externals/consult commit e421843b4634b79b03a7a7e46d45ae387125e2bf Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Update example configuration --- README.org | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index d92220c2d5..7caf5a5e15 100644 --- a/README.org +++ b/README.org @@ -879,16 +879,17 @@ configuration examples. ;; By default `consult-project-function' uses `project-root' from project.el. ;; Optionally configure a different project root function. - ;; There are multiple reasonable alternatives to chose from. ;;;; 1. project.el (the default) ;; (setq consult-project-function #'consult--default-project--function) - ;;;; 2. projectile.el (projectile-project-root) - ;; (autoload 'projectile-project-root "projectile") - ;; (setq consult-project-function (lambda (_) (projectile-project-root))) - ;;;; 3. vc.el (vc-root-dir) + ;;;; 2. vc.el (vc-root-dir) ;; (setq consult-project-function (lambda (_) (vc-root-dir))) - ;;;; 4. locate-dominating-file + ;;;; 3. locate-dominating-file ;; (setq consult-project-function (lambda (_) (locate-dominating-file "." ".git"))) + ;;;; 4. projectile.el (projectile-project-root) + ;; (autoload 'projectile-project-root "projectile") + ;; (setq consult-project-function (lambda (_) (projectile-project-root))) + ;;;; 5. No project support + ;; (setq consult-project-function nil) ) #+end_src