13 lines
448 B
EmacsLisp
13 lines
448 B
EmacsLisp
|
;;; early-init.el -*- lexical-binding: t; -*-
|
||
|
|
||
|
;; Emacs 27.1 introduced early-init.el, which is run before init.el, before
|
||
|
;; package and UI initialization happens, and before site files are loaded.
|
||
|
|
||
|
;; Minimize garbage collection during startup.
|
||
|
(setq gc-cons-threshold most-positive-fixnum)
|
||
|
|
||
|
;; Lower threshold back to 8 MiB (default is 800kB)
|
||
|
(add-hook 'emacs-startup-hook
|
||
|
(lambda ()
|
||
|
(setq gc-cons-threshold (expt 2 23))))
|