core: Add resize hook later in startup

Fixes hang while resizing on startup with initial-frame-alist.

Fixes #6986
This commit is contained in:
Aaron Jensen 2016-09-02 05:42:25 -07:00 committed by Eivind Fonn
parent e207038208
commit bc5eb62e53
1 changed files with 4 additions and 1 deletions

View File

@ -909,7 +909,10 @@ already exist, and switch to it."
(switch-to-buffer spacemacs-buffer-name)
(spacemacs//redisplay)))))
(add-hook 'window-configuration-change-hook 'spacemacs-buffer//resize-on-hook)
(add-hook 'window-setup-hook
(lambda ()
(add-hook 'window-configuration-change-hook 'spacemacs-buffer//resize-on-hook)
(spacemacs-buffer//resize-on-hook)))
(defun spacemacs-buffer//resize-on-hook ()
(let ((space-win (get-buffer-window spacemacs-buffer-name))