Variable: projectile-session-restore-on-switch

projectile-session-restore-on-switch is a customizable variable defined in projectile.el.

Value

t

Documentation

Whether switching to a project restores its saved session.

When non-nil and the project being switched to has no open tab but does have a session saved on disk, projectile-session-switch-project-action restores that session (recreating its buffers and layout) instead of running projectile-session-default-action.

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

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-session-restore-on-switch t
  "Whether switching to a project restores its saved session.
When non-nil and the project being switched to has no open tab but does
have a session saved on disk, `projectile-session-switch-project-action'
restores that session (recreating its buffers and layout) instead of
running `projectile-session-default-action'."
  :group 'projectile
  :type 'boolean
  :package-version '(projectile . "3.2.0"))