Fix spacemacs-buffer/goto-buffer being called twice in some cases

When using the GUI the function is called twice, once in spacemacs/init
and once with spacemacs--after-display-system-init-list
This commit is contained in:
syl20bnr 2016-01-06 22:14:17 -05:00
parent 723a7921d7
commit 1558ca3b09
1 changed files with 6 additions and 4 deletions

View File

@ -84,10 +84,12 @@
(car dotspacemacs-default-font))))
;; spacemacs init
(spacemacs-buffer/goto-buffer)
;; explicitly recreate the home buffer for the first GUI client
(spacemacs|do-after-display-system-init
(kill-buffer (get-buffer spacemacs-buffer-name))
(spacemacs-buffer/goto-buffer))
(unless (display-graphic-p)
;; explicitly recreate the home buffer for the first GUI client
;; in order to correctly display the logo
(spacemacs|do-after-display-system-init
(kill-buffer (get-buffer spacemacs-buffer-name))
(spacemacs-buffer/goto-buffer)))
(setq initial-buffer-choice (lambda () (get-buffer spacemacs-buffer-name)))
;; mandatory dependencies
;; dash is required to prevent a package.el bug with f on 24.3.1