From 1558ca3b0950767db53eac0ec7636ab2d4dd5571 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Wed, 6 Jan 2016 22:14:17 -0500 Subject: [PATCH] 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 --- core/core-spacemacs.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/core-spacemacs.el b/core/core-spacemacs.el index 69e9ecd7a..b02b391eb 100644 --- a/core/core-spacemacs.el +++ b/core/core-spacemacs.el @@ -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