mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
2
bin/doom
2
bin/doom
@ -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
|
||||
|
Reference in New Issue
Block a user