Merge pull request #1227 from flatwhatson/fix-dashboard-switch

Only switch to dashboard when creating a new workspace
This commit is contained in:
Henrik Lissner 2019-03-09 13:04:28 -05:00 committed by GitHub
commit 8f98e441c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.")