Guest User

Improve Emacs Startup

a guest
Jun 26th, 2019
4,235
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data