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:
parent
dc107e4a15
commit
7fc0cbff5e
1 changed files with 1 additions and 1 deletions
2
bin/doom
2
bin/doom
|
@ -82,7 +82,7 @@
|
||||||
(condition-case e
|
(condition-case e
|
||||||
(let* ((bin-dir (file-name-directory (file-truename load-file-name)))
|
(let* ((bin-dir (file-name-directory (file-truename load-file-name)))
|
||||||
(init-file (expand-file-name "../early-init.el" bin-dir)))
|
(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))
|
(featurep 'doom))
|
||||||
(user-error "Failed to load Doom from %s" init-file)))
|
(user-error "Failed to load Doom from %s" init-file)))
|
||||||
;; Prevent ugly backtraces for trivial errors
|
;; Prevent ugly backtraces for trivial errors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue