From 042da73d5d9cccb65ec2cbf3076eb653171258b4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 12 Jun 2017 15:13:30 +0200 Subject: [PATCH] Initialize doom-init-time a little sooner (#106) --- core/core-packages.el | 2 +- modules/ui/doom-dashboard/config.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-packages.el b/core/core-packages.el index 86053e16f..d653e9ac8 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -305,7 +305,7 @@ byte-compilation." (unless (server-running-p) (server-start))) - (add-hook 'doom-post-init-hook #'doom--display-benchmark)))) + (add-hook 'doom-init-hook #'doom--display-benchmark t)))) (defmacro def-package! (name &rest plist) "A thin wrapper around `use-package'." diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 6f53558fe..c03dc039e 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -61,7 +61,7 @@ (when (equal (buffer-name) "*scratch*") (switch-to-buffer (doom-fallback-buffer)))) -(add-hook 'window-setup-hook #'+doom-dashboard|init) +(add-hook 'doom-post-init-hook #'+doom-dashboard|init) ;; Compatibility with `midnight-mode' and `clean-buffer-list' (after! midnight-mode