Variable: projectile-project-root-functions

projectile-project-root-functions is a customizable variable defined in projectile.el.

Value

(projectile-root-local
 projectile-root-marked
 projectile-root-bottom-up
 projectile-root-top-down
 projectile-root-top-down-recurring)

Documentation

A list of functions for finding project root folders.

The functions will be run until one of them returns a project folder. Reordering the default functions will alter the project discovery algorithm.

Aliases

projectile-project-root-files-functions (obsolete since 2.4)

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defcustom projectile-project-root-functions
  '(projectile-root-local
    projectile-root-marked
    projectile-root-bottom-up
    projectile-root-top-down
    projectile-root-top-down-recurring)
  "A list of functions for finding project root folders.
The functions will be run until one of them returns a project folder.
Reordering the default functions will alter the project discovery
algorithm."
  :group 'projectile
  :type '(repeat function))