From 683862872462c1c3c68fa41e370817399c15f836 Mon Sep 17 00:00:00 2001 From: Laurence Warne Date: Sat, 1 Oct 2022 15:25:41 +0100 Subject: [PATCH] Document how to use the new project type overrides --- CHANGELOG.md | 1 + doc/modules/ROOT/pages/projects.adoc | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b4917a1a..272f4fc75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * [#1718](https://github.com/bbatsov/projectile/issues/1718): Add a project type definition for `GNUMakefile`. * [#1747](https://github.com/bbatsov/projectile/pull/1747): Add support for preset-based install-commands for CMake projects. * [#1768](https://github.com/bbatsov/projectile/pull/1768) Add support for disabling command caching on a per-project basis. +* [#1797](https://github.com/bbatsov/projectile/pull/1797) Make all project type attributes locally overridable ### Bugs fixed diff --git a/doc/modules/ROOT/pages/projects.adoc b/doc/modules/ROOT/pages/projects.adoc index 280dc8aff..80e86a8e0 100644 --- a/doc/modules/ROOT/pages/projects.adoc +++ b/doc/modules/ROOT/pages/projects.adoc @@ -754,7 +754,7 @@ you e.g. test a command-line program with `projectile-run-project`. (setq projectile-comint-mode t) ---- -== Configure a Project's Lifecycle Commands +== Configure a Project's Lifecycle Commands and Other Attributes There are a few variables that are intended to be customized via `.dir-locals.el`. @@ -764,6 +764,11 @@ There are a few variables that are intended to be customized via `.dir-locals.el * for installation - `projectile-project-install-cmd` * for packaging - `projectile-project-package-cmd` * for running - `projectile-project-run-cmd` +* for configuring the test prefix - `projectile-project-test-prefix` +* for configuring the test suffix - `projectile-project-test-suffix` +* for configuring the related-files-fn property - `projectile-project-related-files-fn` +* for configuring the src-dir property - `projectile-project-src-dir` +* for configuring the test-dir property - `projectile-project-test-dir` When these variables have their default value of `nil`, Projectile runs the default command for the current project type. You can