Function: projectile-maybe-limit-project-file-buffers
projectile-maybe-limit-project-file-buffers is a byte-compiled
function defined in projectile.el.
Signature
(projectile-maybe-limit-project-file-buffers)
Documentation
Limit the opened file buffers for a project.
The function simply kills the last buffer, as it's normally called when opening new files.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-maybe-limit-project-file-buffers ()
"Limit the opened file buffers for a project.
The function simply kills the last buffer, as it's normally called
when opening new files."
(when projectile-max-file-buffer-count
(let ((project-buffers (projectile-project-buffer-files)))
(when (length> project-buffers projectile-max-file-buffer-count)
(kill-buffer (car (last project-buffers)))))))