mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Merge pull request #1227 from flatwhatson/fix-dashboard-switch
Only switch to dashboard when creating a new workspace
This commit is contained in:
@ -507,7 +507,7 @@ This be hooked to `projectile-after-switch-project-hook'."
|
|||||||
(+workspace-message
|
(+workspace-message
|
||||||
(format "Switched to '%s' in new workspace" new-name)
|
(format "Switched to '%s' in new workspace" new-name)
|
||||||
'success))
|
'success))
|
||||||
(with-current-buffer (switch-to-buffer (doom-fallback-buffer))
|
(with-current-buffer (doom-fallback-buffer)
|
||||||
(setq default-directory +workspaces--project-dir)
|
(setq default-directory +workspaces--project-dir)
|
||||||
(message "Switched to '%s'" (doom-project-name +workspaces--project-dir)))
|
(message "Switched to '%s'" (doom-project-name +workspaces--project-dir)))
|
||||||
(unless current-prefix-arg
|
(unless current-prefix-arg
|
||||||
|
@ -21,7 +21,7 @@ new project directory.")
|
|||||||
Can be one of the following:
|
Can be one of the following:
|
||||||
|
|
||||||
t Always create a new workspace for the project
|
t Always create a new workspace for the project
|
||||||
'non-empty Only create a new workspace if the current one has no buffers
|
'non-empty Only create a new workspace if the current one already has buffers
|
||||||
associated with it.
|
associated with it.
|
||||||
nil Never create a new workspace on project switch.")
|
nil Never create a new workspace on project switch.")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user