From d1c2e7b2349bea713c2b376ab2387f8813b1d6f9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 31 Mar 2020 01:00:40 -0400 Subject: [PATCH] Slightly faster incremental loading --- core/core.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core.el b/core/core.el index f7e02131d..bfa35ae11 100644 --- a/core/core.el +++ b/core/core.el @@ -360,12 +360,12 @@ If you want to disable incremental loading altogether, either remove `doom-incremental-first-idle-timer' to nil. Incremental loading does not occur in daemon sessions (they are loaded immediately at startup).") -(defvar doom-incremental-first-idle-timer 2 +(defvar doom-incremental-first-idle-timer 2.0 "How long (in idle seconds) until incremental loading starts. Set this to nil to disable incremental loading.") -(defvar doom-incremental-idle-timer 1.5 +(defvar doom-incremental-idle-timer 0.75 "How long (in idle seconds) in between incrementally loading packages.") (defun doom-load-packages-incrementally (packages &optional now) @@ -406,7 +406,7 @@ intervals." If this is a daemon session, load them all immediately instead." (if (daemonp) (mapc #'require (cdr doom-incremental-packages)) - (when (integerp doom-incremental-first-idle-timer) + (when (numberp doom-incremental-first-idle-timer) (run-with-idle-timer doom-incremental-first-idle-timer nil #'doom-load-packages-incrementally (cdr doom-incremental-packages) t))))