Only switch to dashboard when creating a new workspace

This commit is contained in:
Andrew Whatson 2019-03-08 12:49:15 +10:00
parent 4a1a359c21
commit a48417cf0d
2 changed files with 2 additions and 2 deletions

View file

@ -507,7 +507,7 @@ This be hooked to `projectile-after-switch-project-hook'."
(+workspace-message
(format "Switched to '%s' in new workspace" new-name)
'success))
(with-current-buffer (switch-to-buffer (doom-fallback-buffer))
(with-current-buffer (doom-fallback-buffer)
(setq default-directory +workspaces--project-dir)
(message "Switched to '%s'" (doom-project-name +workspaces--project-dir)))
(unless current-prefix-arg

View file

@ -21,7 +21,7 @@ new project directory.")
Can be one of the following:
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.
nil Never create a new workspace on project switch.")