aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d/early-init.el
diff options
context:
space:
mode:
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))))