Switch to Spacemacs Home on creating *new* layout

This commit is contained in:
Muneeb Shaikh 2015-12-06 15:31:36 +05:30 committed by syl20bnr
parent 81aea286ad
commit 7b931a9f5b
2 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,10 @@ perspectives does."
'(("Create new perspective" .
(lambda (name)
(let ((persp-reset-windows-on-nil-window-conf t))
(persp-switch name)))))))))
(if (member name (persp-names-current-frame-fast-ordered))
(persp-switch name)
(persp-switch name)
(spacemacs/home))))))))))
;; ability to use helm find files but also adds to current perspective
(defun spacemacs/helm-persp-close ()

View File

@ -152,7 +152,8 @@
(concat "Perspective in this position doesn't exist.\n"
"Do you want to create one? "))
(let ((persp-reset-windows-on-nil-window-conf t))
(persp-switch nil))))))
(persp-switch nil)
(spacemacs/home))))))
;; Define all `spacemacs/persp-switch-to-X' functions
(dolist (i (number-sequence 9 0 -1))