Only switch to dashboard when creating a new workspace
This commit is contained in:
parent
4a1a359c21
commit
a48417cf0d
2 changed files with 2 additions and 2 deletions
|
@ -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.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue