feature/workspaces: if universal arg, don't prompt for file on project switch

This commit is contained in:
Henrik Lissner 2018-03-23 16:03:29 -04:00
parent 326763ab3d
commit 3f4c2c81d9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -531,14 +531,16 @@ Should be hooked to `projectile-after-switch-project-hook'."
(switch-to-buffer (doom-fallback-buffer)))
(with-current-buffer (doom-fallback-buffer)
(setq default-directory +workspaces--project-dir))
(funcall +workspaces-switch-project-function +workspaces--project-dir)
(unless current-prefix-arg
(funcall +workspaces-switch-project-function +workspaces--project-dir))
(+workspace-message
(format "Switched to '%s' in new workspace" new-name)
'success))
(with-current-buffer (switch-to-buffer (doom-fallback-buffer))
(setq default-directory +workspaces--project-dir)
(message "Switched to '%s'" (doom-project-name 'nocache)))
(funcall +workspaces-switch-project-function +workspaces--project-dir))
(unless current-prefix-arg
(funcall +workspaces-switch-project-function +workspaces--project-dir)))
(setq +workspaces--project-dir nil))))