Skip to content

Commit

Permalink
core: Add resize hook later in startup
Browse files Browse the repository at this point in the history
Fixes hang while resizing on startup with initial-frame-alist.

Fixes #6986
  • Loading branch information
aaronjensen authored and TheBB committed Sep 3, 2016
1 parent e207038 commit bc5eb62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/core-spacemacs-buffer.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bc5eb62

Please sign in to comment.