Skip to content

Commit 4dd84b0

Browse files
committed
Set projectile-auto-discover to nil by default
That's a safer default, given the changes to its behavior in 2.9.
1 parent 55db082 commit 4dd84b0

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## master (unreleased)
44

5+
### Changes
6+
7+
* Set `projectile-auto-discover` to `nil` by default.
8+
59
## 2.9.1 (2025-02-13)
610

711
### Bugs Fixed

doc/modules/ROOT/pages/usage.adoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,17 @@ Recursive discovery is configured by specifying the search depth in a cons cell:
6666
(setq projectile-project-search-path '("~/projects/" "~/work/" ("~/github" . 1)))
6767
----
6868

69-
You can suppress the auto-discovery of projects on startup by setting
70-
`projectile-auto-discover` to `nil`. You can manually trigger the project
71-
discovery using `M-x projectile-discover-projects-in-search-path`.
69+
You can manually trigger the project
70+
discovery using `M-x projectile-discover-projects-in-search-path` or you can
71+
use `projectile-auto-discover` to discover projects on the search path automatically:
72+
73+
[source,elisp]
74+
----
75+
(setq projectile-auto-discover t)
76+
----
77+
78+
NOTE: Keep in mind the auto-discovery will be triggered every time you switch projects,
79+
so it's probably not a good idea if you have many projects on your search path.
7280

7381
=== Removal of missing projects
7482

projectile.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ A value of nil means the cache never expires."
191191
:type '(choice (const :tag "Disabled" nil)
192192
(integer :tag "Seconds")))
193193

194-
(defcustom projectile-auto-discover t
194+
(defcustom projectile-auto-discover nil
195195
"Whether to discover projects when project switching commands are invoked.
196196

197197
See also `projectile-project-search-path'."

0 commit comments

Comments
 (0)