perf(cli): use nosuffix loading early-init

Don't waste file IO time looking for
early-init.el{.so{,.gz},.elc{,.gz},.el{,gz}}.
This commit is contained in:
Henrik Lissner 2022-09-17 20:59:48 +02:00
parent dc107e4a15
commit 7fc0cbff5e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -82,7 +82,7 @@
(condition-case e
(let* ((bin-dir (file-name-directory (file-truename load-file-name)))
(init-file (expand-file-name "../early-init.el" bin-dir)))
(or (and (load init-file nil 'nomessage)
(or (and (load init-file nil 'nomessage 'nosuffix)
(featurep 'doom))
(user-error "Failed to load Doom from %s" init-file)))
;; Prevent ugly backtraces for trivial errors