From af3eb37c8e51084261f2ad4bfe1d36fffbcfaebf Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 8 Jun 2022 17:59:53 -0500 Subject: blep --- early-init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'early-init.el') 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." (set-default variable value))) ;; Garbage collection -(+set-during-startup 'gc-cons-threshold most-positive-fixnum (* 128 1024 1024)) +(+set-during-startup 'gc-cons-threshold most-positive-fixnum) + +(add-hook 'minibuffer-setup-hook (defun garbage-collect@minibuffer-enter () + (setq gc-cons-threshold most-positive-fixnum))) +(add-hook 'minibuffer-exit-hook (defun garbage-collect@minibuffer-exit () + (setq gc-cons-threshold 800000))) ;; Don't prematurely re-display (unless debug-on-error -- cgit 1.4.1-21-gabe81