aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d/early-init.el
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-04-01 11:49:47 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-04-01 11:50:20 -0400
commit7aa80639f92f1c8359b5311014e2fc22831eba86 (patch)
tree188efe1520d7ef6daf208d8de50388c1a3a98238 /.emacs.d/early-init.el
parentUpdate nvim config (diff)
downloaddotfiles-7aa80639f92f1c8359b5311014e2fc22831eba86.zip
Update emacs config
Diffstat (limited to '.emacs.d/early-init.el')
-rw-r--r--.emacs.d/early-init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el
new file mode 100644
index 0000000..2f887b9
--- /dev/null
+++ b/.emacs.d/early-init.el
@@ -0,0 +1,6 @@
+;; Temporarily increase GC threshold during startup
+(setq gc-cons-threshold most-positive-fixnum)
+
+;; Restore to normal value after startup (e.g. 50MB)
+(add-hook 'emacs-startup-hook
+ (lambda () (setq gc-cons-threshold (* 50 1024 1024))))