diff options
| author | Bozhidar Batsov <bozhidar@batsov.com> | 2020-12-03 09:52:58 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.com> | 2020-12-03 09:52:58 +0200 |
| commit | 86829b62e542518858bac727a783aad2ec2ced71 (patch) | |
| tree | a85d747545f0fea2aa9f3e8bc6c8847f1ae5df88 | |
| parent | 0b4153921823177da2c89c79bf2e707048b02843 (diff) | |
[Docs] Tweak the vc-root-dir example
| -rw-r--r-- | doc/modules/ROOT/pages/projects.adoc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/modules/ROOT/pages/projects.adoc b/doc/modules/ROOT/pages/projects.adoc index 8febd10..4e523f9 100644 --- a/doc/modules/ROOT/pages/projects.adoc +++ b/doc/modules/ROOT/pages/projects.adoc @@ -476,7 +476,13 @@ Re-ordering those functions will alter the project detection, but you can also r [source,elisp] ---- -(setq projectile-project-root-files-functions '(vc-root-dir)) +;; we need this wrapper to match Projectile's API +(defun projectile-vc-root-dir (dir) + "Retrieve the root directory of the project at DIR using `vc-root-dir'." + (let ((default-directory dir)) + (vc-root-dir))) + +(setq projectile-project-root-files-functions '(projectile-vc-root-dir)) ---- == Ignoring files |
