Function: projectile-switch-to-most-recent-project
projectile-switch-to-most-recent-project is an autoloaded, interactive
and byte-compiled function defined in projectile.el.
Signature
(projectile-switch-to-most-recent-project &optional ARG)
Documentation
Switch to the project recorded in projectile-most-recent-project.
That's the project that was current before the most recent project
switch, so calling this from a buffer in the switched-to project takes
you back where you came from. With a prefix ARG invokes
projectile-dispatch instead of
projectile-switch-project-action.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;;###autoload
(defun projectile-switch-to-most-recent-project (&optional arg)
"Switch to the project recorded in `projectile-most-recent-project'.
That's the project that was current before the most recent project
switch, so calling this from a buffer in the switched-to project takes
you back where you came from. With a prefix ARG invokes
`projectile-dispatch' instead of
`projectile-switch-project-action'."
(interactive "P")
(if projectile-most-recent-project
(projectile-switch-project-by-name projectile-most-recent-project arg)
(user-error "No most recent project recorded yet")))