aboutsummaryrefslogtreecommitdiff
path: root/early-init.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-22 00:22:23 -0500
committerCraig Jennings <c@cjennings.net>2026-04-22 00:22:23 -0500
commitc5c815eb3701c8d5a900020ae10c88cb21535cab (patch)
tree7b7a7137ab07478da943da36d453de7375e4baa0 /early-init.el
parentbe439e6feb1b27460ed10f3eb6b49f403188031d (diff)
downloaddotemacs-c5c815eb3701c8d5a900020ae10c88cb21535cab.tar.gz
dotemacs-c5c815eb3701c8d5a900020ae10c88cb21535cab.zip
fix: load freshness, wttrin path, compile-time package init
Set load-prefer-newer in early-init.el. Emacs was loading the older .elc files even when the .el source was newer, warning on every load but still using the stale byte code. Point weather-config.el's wttrin :load-path at /home/cjennings/code/emacs-wttrin. The previous value was /home/cjennings/code/wttrin, which does not exist, so use-package could not load the package. Add (package-initialize) to the Makefile compile target. Without it, batch byte-compile cannot see ELPA packages like git-gutter, git-timemachine, forge, and difftastic, which produced "Cannot load" warnings on every run.
Diffstat (limited to 'early-init.el')
-rw-r--r--early-init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el
index c1cd54c8b..9f90f292e 100644
--- a/early-init.el
+++ b/early-init.el
@@ -65,6 +65,14 @@
(setq native-comp-deferred-compilation nil) ;; Disable async/deferred compilation
(setq native-comp-async-report-warnings-errors nil) ;; Silence async warnings
+;; ------------------------------- Load Freshness ------------------------------
+;; Prefer newer .el source over stale .elc byte-compiled files. Without this,
+;; Emacs loads the .elc even when the .el has been modified more recently and
+;; only emits a warning. Setting this in early-init.el ensures init.el itself
+;; also benefits.
+
+(setq load-prefer-newer t)
+
;; --------------------------- Warning Notifications ---------------------------
;; skip warnings but notify me about errors