mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
2
init.el
2
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
|
||||
|
Reference in New Issue
Block a user