ui/workspaces: remove unused function

This commit is contained in:
Henrik Lissner 2019-05-18 23:43:27 -04:00
parent 8c65a63b1c
commit 928ec16242
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -524,15 +524,3 @@ This be hooked to `projectile-after-switch-project-hook'."
(when (doom-real-buffer-list) (when (doom-real-buffer-list)
(apply orig-fn args)) (apply orig-fn args))
t) t)
;;;###autoload
(defun +workspaces*switch-project-by-name (orig-fn &rest args)
"Switch to a project and prompt for a file to open.
Ensures the scratch (or dashboard) buffers are CDed into the project's root."
(when persp-mode
(+workspace-switch (car args) t)
(with-current-buffer (switch-to-buffer (doom-fallback-buffer))
(setq default-directory (car args))))
(apply orig-fn args))