branch: elpa/projectile commit e5e950edd2cc7dacddc6b0c412b0b524525b74a4 Author: lWarne <laurencewa...@gmail.com> Commit: Bozhidar Batsov <bozhi...@batsov.dev>
Add documentation for projectile-update-project-type changes --- CHANGELOG.md | 1 + doc/modules/ROOT/pages/projects.adoc | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1e2a61e59..cc4cfa68e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### New features +* Allow `projectile-update-project-type` to change project type precendence and remove project options. * [#1699](https://github.com/bbatsov/projectile/pull/1699): `projectile-ripgrep` now supports [`rg.el`](https://github.com/dajva/rg.el). * [#1712](https://github.com/bbatsov/projectile/issues/1712): Make it possible to hide Projectile's menu. See `projectile-show-menu`. * [#1718](https://github.com/bbatsov/projectile/issues/1718): Add a project type definition for `GNUMakefile`. diff --git a/doc/modules/ROOT/pages/projects.adoc b/doc/modules/ROOT/pages/projects.adoc index cb5e4bc56f..6bfbf4a320 100644 --- a/doc/modules/ROOT/pages/projects.adoc +++ b/doc/modules/ROOT/pages/projects.adoc @@ -475,11 +475,12 @@ You can also edit specific options of already existing project types: :related-files-fn (list (projectile-related-files-fn-test-with-suffix "scala" "Spec") - (projectile-related-files-fn-test-with-suffix "scala" "Test"))) + (projectile-related-files-fn-test-with-suffix "scala" "Test")) + :test-prefix nil + :precedence 'high) ---- -This will keep all existing options for the `sbt` project type, but change the value of the `related-files-fn` option. - +This will change the value of the `related-files-fn` option, remove the `test-prefix` option and `:precedence 'high` sets the sbt project type to be chosen in preference to other potentially clashing project types (a value `'low` would do the opposite). === `:test-dir`/`:src-dir` vs `:related-files-fn`