From c6fc47cc8ddf504ed29a1f3c0758938885fa3797 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 24 Apr 2019 13:09:33 -0400 Subject: [PATCH] Suppress 'void-variable: after-init-time' error #1358 Old versions of Emacs complain about after-init-time being undefined. This happens before Doom's version guard is triggered (which emits a more helpful message). --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 3bab9f7e1..f50f928a3 100644 --- a/init.el +++ b/init.el @@ -48,7 +48,7 @@ decrease this. If you experience stuttering, increase this.") 3 nil (lambda () (setq-default gc-cons-threshold doom-gc-cons-threshold)))) -(if (or after-init-time noninteractive) +(if (ignore-errors (or after-init-time noninteractive)) (setq gc-cons-threshold doom-gc-cons-threshold) ;; A big contributor to startup times is garbage collection. We up the gc ;; threshold to temporarily prevent it from running, then reset it later in