Variable: projectile-mode-line-prefix

projectile-mode-line-prefix is a customizable variable defined in projectile.el.

Value

" Projectile"

Documentation

Mode line lighter prefix for Projectile.

It's used by projectile-default-mode-line when using dynamic mode line lighter and is the only thing shown in the mode line otherwise.

Change the value via Customize or setopt so it takes effect immediately; a plain setq only reaches buffers whose lighter is recomputed later, and none are when projectile-dynamic-mode-line is off.

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

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-mode-line-prefix
  " Projectile"
  "Mode line lighter prefix for Projectile.
It's used by `projectile-default-mode-line'
when using dynamic mode line lighter and is the only
thing shown in the mode line otherwise.

Change the value via Customize or `setopt' so it takes effect
immediately; a plain `setq' only reaches buffers whose lighter is
recomputed later, and none are when `projectile-dynamic-mode-line' is
off."
  :group 'projectile
  :type 'string
  :set (lambda (symbol value)
         (set-default symbol value)
         ;; The lighter is a variable, not a computation, so buffers that
         ;; never recompute it - all of them with `projectile-dynamic-mode-line'
         ;; off - would otherwise keep displaying whatever the prefix was
         ;; when Projectile loaded.
         (setq-default projectile--mode-line value)
         (force-mode-line-update t))
  :package-version '(projectile . "0.12.0"))