summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-25 16:40:46 -0500
committerCraig Jennings <c@cjennings.net>2025-10-25 16:40:46 -0500
commit810bd343a3b237ada9684549613b0709f22cdd99 (patch)
tree46ae2d007e677facfd48db926fd66f2579f87a22
parent3ddbf1123bca39d49a3eacc4f07bde9a45ff75a7 (diff)
refactor:init: adjust startup performance optimizations
Enable error notifications by adjusting warning level. Simplify startup performance by removing version control backend adjustments. Restore initial settings after startup.
-rw-r--r--early-init.el13
1 files changed, 4 insertions, 9 deletions
diff --git a/early-init.el b/early-init.el
index 82953c8f..6b886ec8 100644
--- a/early-init.el
+++ b/early-init.el
@@ -64,7 +64,7 @@
;; --------------------------- Warning Notifications ---------------------------
;; skip warnings but notify me about errors
-;; (setq warning-minimum-level :error)
+(setq warning-minimum-level :error)
;; --------------------------- Use Online Repos Flag ---------------------------
;; set to nil to only use localrepo and local elpa-mirrors (see script directory)
@@ -78,8 +78,8 @@
Can be t (available), nil (not available), or :unknown (not checked yet).")
;; ---------------------------- Startup Performance ----------------------------
-;; increases garbage collection threshold, and turns off file-name-handler and
-;; vc-backends during startup and restores the settings once emacs has loaded.
+;; increases garbage collection threshold and turns off file-name-handler
+;; during startup and restores the settings once emacs has loaded.
(defvar cj/orig-gc-cons-threshold gc-cons-threshold
"Temporary variable to allow restoration of value post-startup.")
@@ -89,15 +89,10 @@ Can be t (available), nil (not available), or :unknown (not checked yet).")
"Temporary variable to allow restoration of value post-startup.")
(setq file-name-handler-alist nil)
-(defvar cj/orig-vc-handled-backends vc-handled-backends
- "Temporary variable to allow restoration of value post-startup.")
-(setq vc-handled-backends nil)
-
(add-hook 'emacs-startup-hook
(lambda ()
(setq gc-cons-threshold cj/orig-gc-cons-threshold
- file-name-handler-alist cj/orig-file-name-handler-alist
- vc-handled-backends cj/orig-vc-handled-backends)))
+ file-name-handler-alist cj/orig-file-name-handler-alist)))
;; ------------------------------ Site Start Files -----------------------------
;; don't load site-start or default.el files