Variable: projectile-dynamic-mode-line

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

Value

t

Documentation

If true, update the mode-line dynamically.

The mode-line is updated when files are opened via find-file-hook and when the window configuration changes.

Change the value via Customize or setopt so it takes effect immediately; a plain setq only takes effect before projectile-mode(var)/projectile-mode(fun) is enabled.

See also projectile-mode-line-function and projectile-update-mode-line.

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-dynamic-mode-line t
  "If true, update the mode-line dynamically.
The mode-line is updated when files are opened via `find-file-hook'
and when the window configuration changes.

Change the value via Customize or `setopt' so it takes effect
immediately; a plain `setq' only takes effect before
`projectile-mode' is enabled.

See also `projectile-mode-line-function' and `projectile-update-mode-line'."
  :group 'projectile
  :type 'boolean
  :set (lambda (symbol value)
         (set-default symbol value)
         (when (bound-and-true-p projectile-mode)
           (if value
               (add-hook 'window-configuration-change-hook #'projectile-update-mode-line-on-window-change)
             (remove-hook 'window-configuration-change-hook #'projectile-update-mode-line-on-window-change))))
  :package-version '(projectile . "2.0.0"))