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).
This commit is contained in:
Henrik Lissner 2019-04-24 13:09:33 -04:00
parent 2066206e83
commit c6fc47cc8d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -48,7 +48,7 @@ decrease this. If you experience stuttering, increase this.")
3 nil (lambda () (setq-default gc-cons-threshold doom-gc-cons-threshold)))) 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) (setq gc-cons-threshold doom-gc-cons-threshold)
;; A big contributor to startup times is garbage collection. We up the gc ;; 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 ;; threshold to temporarily prevent it from running, then reset it later in