summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-08-13 03:01:41 +0200
committercashmere <cashmere@autistici.org>2026-08-13 03:01:41 +0200
commit894fe6ec74947627966384190f501c450789198f (patch)
treea974ffddfb59a243d3ba4d466eb0e1cff2c3e7f4 /init.el
parentfc3760426e1e4a68e4fad4f6dc8fca7297830041 (diff)
downloademacs-894fe6ec74947627966384190f501c450789198f.tar.gz
md: 2026-08-13T03:01:41+02:00
Diffstat (limited to 'init.el')
-rw-r--r--init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.el b/init.el
index 638d947..d827b9a 100644
--- a/init.el
+++ b/init.el
@@ -84,8 +84,9 @@
(require 'ob-tangle)
(let ((gc-cons-threshold most-positive-fixnum))
(org-babel-tangle-file org-file el-file "emacs-lisp")))
- ;; Prefer .elc when present; native-compile asynchronously in the background.
- (load (file-name-sans-extension el-file) nil 'nomessage)
+ ;; Load the generated source directly. A stale `config.elc' can otherwise
+ ;; shadow a freshly tangled `config.el' and break startup with old code.
+ (load el-file nil 'nomessage)
(when (and (featurep 'native-compile)
(fboundp 'native-comp-available-p)
(native-comp-available-p))