Defer loading of persp mode until after user-config

fix #3881
This commit is contained in:
Christoph Paulik 2016-05-02 23:34:39 +02:00 committed by Eivind Fonn
parent 169d6873c9
commit 67aeb73655

View file

@ -108,11 +108,15 @@
persp-reset-windows-on-nil-window-conf nil
persp-set-last-persp-for-new-frames nil
persp-save-dir spacemacs-layouts-directory)
;; always activate persp-mode, unless it is already active (e.g. don't
;; re-activate during `dotspacemacs/sync-configuration-layers' - see
;; issues #5925 and #3875)
(unless (bound-and-true-p persp-mode)
(persp-mode))
(defun spacemacs//activate-persp-mode ()
"Always activate persp-mode, unless it is already active.
(e.g. don't re-activate during `dotspacemacs/sync-configuration-layers' -
see issues #5925 and #3875)"
(unless (bound-and-true-p persp-mode)
(persp-mode)))
(spacemacs/defer-until-after-user-config #'spacemacs//activate-persp-mode)
;; layouts transient state
(spacemacs|transient-state-format-hint layouts
spacemacs--layouts-ts-full-hint