Guest User

Improve Emacs Startup

a guest
Jun 26th, 2019
6,420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.27 KB | None | 0 0
  1. ;; Increases Garbage Collection During Startup
  2. (setq startup/gc-cons-threshold gc-cons-threshold)
  3. (setq gc-cons-threshold most-positive-fixnum)
  4. (defun startup/reset-gc () (setq gc-cons-threshold startup/gc-cons-threshold))
  5. (add-hook 'emacs-startup-hook 'startup/reset-gc)
Add Comment
Please, Sign In to add comment