mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-15 13:23:42 -05:00
feature/workspaces: add +workspaces-on-switch-project-behavior #836
To control when a new workspace is created when switching projectile projects.
This commit is contained in:
@@ -549,7 +549,9 @@ This be hooked to `projectile-after-switch-project-hook'."
|
||||
(setq +workspaces--project-dir dir))
|
||||
(when (and persp-mode +workspaces--project-dir)
|
||||
(unwind-protect
|
||||
(if (+workspace-buffer-list)
|
||||
(if (and (not (null +workspaces-on-switch-project-behavior))
|
||||
(or (eq +workspaces-on-switch-project-behavior t)
|
||||
(+workspace-buffer-list)))
|
||||
(let* (persp-p
|
||||
(persp
|
||||
(let ((project-name (doom-project-name +workspaces--project-dir)))
|
||||
|
Reference in New Issue
Block a user