From d0a6d2b0dc9dddf18b2e24edae817be464b72e37 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 24 Nov 2020 08:31:31 -0600 Subject: Increase garbage collector early in init --- config.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.org b/config.org index 624f3be..9a8e8fb 100644 --- a/config.org +++ b/config.org @@ -103,6 +103,18 @@ It's highly likely that the WTFPL is completely incompatible with the GPL, for w #+end_src +** Increase the garbage collector + +#+begin_src emacs-lisp :tangle early-init.el + (setq gc-cons-threshold (* 100 100 1000)) + + (add-hook 'after-init-hook + (lambda () + (setq gc-cons-threshold (* 100 100 100)) + (message "gc-cons-threshold restored to %S" + gc-cons-threshold))) +#+end_src + ** Add more paths to the =exec-path= when using Windows #+begin_src emacs-lisp :tangle early-init.el -- cgit 1.4.1-21-gabe81