From 64dee1f2de64c42fabacc5db678d7f66a6d3728d Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sun, 2 Mar 2025 23:51:49 +0200 Subject: [Docs] Document projectile-max-file-buffer-count --- doc/modules/ROOT/pages/configuration.adoc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/modules/ROOT/pages/configuration.adoc b/doc/modules/ROOT/pages/configuration.adoc index e9e58a6..44a6bd8 100644 --- a/doc/modules/ROOT/pages/configuration.adoc +++ b/doc/modules/ROOT/pages/configuration.adoc @@ -505,6 +505,23 @@ project-specific. This requires that the user set: Both of these degrade properly when not inside a project. +== Limit the number of project file buffers + +Projectile can be configured to keep a maximum number of file buffers of a project +that are opened at one point. The custom variable `projectile-max-buffer-count` +can be set to an integer that will be the buffer count cap. If this limit is +reached, by opening a new file, Projectile will close the least recent buffer of +the current project. If the variable is `nil`, the will be no cap on the buffer +count. + +[source,elisp] +---- +(setq projectile-max-file-buffer-count 10) +---- + +Note that special project buffers (e.g. compilation, `dired`, etc) are not +affected by this setting. + == Regenerate tags To be able to regenerate a project's tags via `projectile-tags-command`, you -- cgit v1.0