From 7fc0cbff5e590ae3fcc3bb9d9ddae455d98a0f41 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 17 Sep 2022 20:59:48 +0200 Subject: [PATCH] perf(cli): use nosuffix loading early-init Don't waste file IO time looking for early-init.el{.so{,.gz},.elc{,.gz},.el{,gz}}. --- bin/doom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/doom b/bin/doom index c928dd297..b270ae943 100755 --- a/bin/doom +++ b/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