feature/workspaces: simplify doom|new-workspace-on-project-change
This commit is contained in:
parent
935aff99d7
commit
84275d312d
1 changed files with 1 additions and 4 deletions
|
@ -62,10 +62,7 @@
|
||||||
|
|
||||||
;; Create a new workspace on project switch
|
;; Create a new workspace on project switch
|
||||||
(defun doom|new-workspace-on-project-change ()
|
(defun doom|new-workspace-on-project-change ()
|
||||||
(let ((project-name (projectile-project-name)))
|
(+workspace-switch (projectile-project-name) t))
|
||||||
(if (+workspace-exists-p project-name)
|
|
||||||
(+workspace/switch-to project-name)
|
|
||||||
(+workspace/new project-name))))
|
|
||||||
(add-hook 'projectile-before-switch-project-hook 'doom|new-workspace-on-project-change)
|
(add-hook 'projectile-before-switch-project-hook 'doom|new-workspace-on-project-change)
|
||||||
|
|
||||||
;; Be quiet when saving
|
;; Be quiet when saving
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue