From fbe94ba9f27fbece074fcd058793d23d9aa0f8bb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 26 Sep 2022 12:32:30 +0200 Subject: [PATCH] perf: inhibit display-startup-screen --- lisp/doom.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/doom.el b/lisp/doom.el index 47aff98f8..b8aa307f8 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -361,6 +361,11 @@ users).") ;; PERF,UX: Remove "For information about GNU Emacs..." message at startup. ;; It's redundant with our dashboard and incurs a premature redraw. (advice-add #'display-startup-echo-area-message :override #'ignore) + ;; PERF: Suppress the vanilla startup screen completely. We've disabled it + ;; with `inhibit-startup-screen', but it would still initialize anyway. + ;; This involves some file IO and/or bitmap work (depending on the frame + ;; type) that we can no-op for a free 50-100ms boost in startup time. + (advice-add #'display-startup-screen :override #'ignore) ;; PERF: Shave seconds off startup time by starting the scratch buffer in ;; `fundamental-mode', rather than, say, `org-mode' or `text-mode', which