Variable: projectile-globally-ignored-modes

projectile-globally-ignored-modes is a customizable variable defined in projectile.el.

Value

("erc-mode" "help-mode" "completion-list-mode" "Buffer-menu-mode"
 "gnus-.*-mode" "occur-mode")

Documentation

A list of regular expressions for major modes ignored by projectile.

If a buffer is using a given major mode, projectile will ignore it for functions working with buffers.

Each entry is matched against the whole mode name, so "occur-mode" ignores that mode and nothing else, while "gnus-.*-mode" ignores a family of them.

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

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-globally-ignored-modes
  '("erc-mode"
    "help-mode"
    "completion-list-mode"
    "Buffer-menu-mode"
    "gnus-.*-mode"
    "occur-mode")
  "A list of regular expressions for major modes ignored by projectile.

If a buffer is using a given major mode, projectile will ignore
it for functions working with buffers.

Each entry is matched against the whole mode name, so \"occur-mode\"
ignores that mode and nothing else, while \"gnus-.*-mode\" ignores a
family of them."
  :group 'projectile
  :type '(repeat regexp)
  :safe #'list-of-strings-p
  :package-version '(projectile . "0.10.0"))