From 735d129f924b1a044540ff6e9eaa9b5c39f919bd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 29 Jan 2018 17:06:20 -0500 Subject: [PATCH] Truly prevent unstyled mode-line flash at startup --- core/core-ui.el | 3 +++ core/core.el | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 03d2c1eda..4ffa7c8dd 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -36,6 +36,9 @@ shorter major mode name in the mode-line. See `doom|set-mode-name'.") "List of hooks to run when the theme (and font) is initialized (or reloaded with `doom//reload-theme').") +;; Prevents the unstyled mode-line flash at startup +(with-current-buffer (switch-to-buffer "*scratch*") + (setq mode-line-format nil)) (setq-default bidi-display-reordering nil ; disable bidirectional text for tiny performance boost diff --git a/core/core.el b/core/core.el index ce7b07ea4..e91819052 100644 --- a/core/core.el +++ b/core/core.el @@ -116,8 +116,7 @@ melodramatic ex-vimmer disappointed with the text-editor status quo." inhibit-startup-echo-area-message user-login-name inhibit-default-init t initial-major-mode 'fundamental-mode - initial-scratch-message nil - mode-line-format nil)) + initial-scratch-message nil)) ;; Custom init hooks; clearer than `after-init-hook', `emacs-startup-hook', and ;; `window-setup-hook'.