Variable: projectile-session-restore-on-startup

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

Value

nil

Documentation

Whether to reopen every saved project session when Emacs starts.

When non-nil and projectile-session-mode(var)/projectile-session-mode(fun) is enabled, a handler added to emacs-startup-hook runs projectile-session-restore-all once, reopening each saved project into its own tab after your init files have finished loading. Because that hook is installed on mode enable and emacs-startup-hook fires only once, right after startup, enabling the mode *after* Emacs has finished starting never triggers a restore.

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-startup nil
  "Whether to reopen every saved project session when Emacs starts.
When non-nil and `projectile-session-mode' is enabled, a handler added to
`emacs-startup-hook' runs `projectile-session-restore-all' once, reopening
each saved project into its own tab after your init files have finished
loading.  Because that hook is installed on mode enable and
`emacs-startup-hook' fires only once, right after startup, enabling the
mode *after* Emacs has finished starting never triggers a restore."
  :group 'projectile
  :type 'boolean
  :package-version '(projectile . "3.2.0"))