Variable: projectile-project-changed-functions
projectile-project-changed-functions is a customizable variable
defined in projectile.el.
Value
nil
Documentation
Functions to run when the current project changes.
Each function is called with two arguments - the new project root and
the project root it changed from (nil when there was none). Unlike
projectile-after-switch-project-hook, which only runs on
projectile-switch-project, these functions also run when the project
changes implicitly, e.g. by visiting a file or directory of another
project. Moving to a buffer outside any project is not a change;
the functions run again only when another project is entered.
This variable was added, or its default value changed, in projectile version 3.1.0.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-project-changed-functions nil
"Functions to run when the current project changes.
Each function is called with two arguments - the new project root and
the project root it changed from (nil when there was none). Unlike
`projectile-after-switch-project-hook', which only runs on
`projectile-switch-project', these functions also run when the project
changes implicitly, e.g. by visiting a file or directory of another
project. Moving to a buffer outside any project is not a change;
the functions run again only when another project is entered."
:group 'projectile
:type 'hook
:package-version '(projectile . "3.1.0"))