Variable: projectile-require-project-root

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

Value

prompt

Documentation

Require the presence of a project root to operate when true.

When set to prompt Projectile will ask you to select a project directory if you're not in a project.

When nil Projectile will consider the current directory the project root.

This variable was added, or its default value changed, in projectile version 2.0.0.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-require-project-root 'prompt
  "Require the presence of a project root to operate when true.
When set to `prompt' Projectile will ask you to select a project
directory if you're not in a project.

When nil Projectile will consider the current directory the project root."
  :group 'projectile
  :type '(choice (const :tag "No" nil)
                 (const :tag "Yes" t)
                 (const :tag "Prompt for project" prompt))
  :package-version '(projectile . "2.0.0"))