summary refs log tree commit diff stats
path: root/early-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'early-init.el')
-rw-r--r--early-init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/early-init.el b/early-init.el index 12e2b0d..5109795 100644 --- a/early-init.el +++ b/early-init.el
@@ -44,7 +44,12 @@ restore that."
44 (set-default variable value))) 44 (set-default variable value)))
45 45
46;; Garbage collection 46;; Garbage collection
47(+set-during-startup 'gc-cons-threshold most-positive-fixnum (* 128 1024 1024)) 47(+set-during-startup 'gc-cons-threshold most-positive-fixnum)
48
49(add-hook 'minibuffer-setup-hook (defun garbage-collect@minibuffer-enter ()
50 (setq gc-cons-threshold most-positive-fixnum)))
51(add-hook 'minibuffer-exit-hook (defun garbage-collect@minibuffer-exit ()
52 (setq gc-cons-threshold 800000)))
48 53
49;; Don't prematurely re-display 54;; Don't prematurely re-display
50(unless debug-on-error 55(unless debug-on-error