git.fiddlerwoaroof.com
Browse code

feat(emacs): run gc on idle timer

Edward Langley authored on 09/06/2021 20:38:24
Showing 1 changed files
... ...
@@ -197,6 +197,7 @@ from the selected region."
197 197
 
198 198
 (defun cold-boot ()
199 199
   ""
200
+  (run-with-idle-timer 5 t 'garbage-collect)
200 201
   (setq fwoar.is-ordinary (not (string= invocation-name "EmacsNotes")))
201 202
   (add-hook 'after-init-hook 'post-init)
202 203
   (electric-indent-mode -1)