2018-03-21 19:21:18 +00:00
|
|
|
;;; early-init.el -*- lexical-binding: t; -*-
|
|
|
|
|
2018-03-28 04:41:57 +00:00
|
|
|
;; Emacs HEAD (27+) introduces early-init.el, which is run before init.el,
|
2018-08-31 21:40:54 +00:00
|
|
|
;; before package and UI initialization happens.
|
2018-03-28 04:41:57 +00:00
|
|
|
|
2018-09-19 22:14:01 +00:00
|
|
|
;; Defer garbage collection further back in the startup process
|
|
|
|
(setq gc-cons-threshold 268435456)
|
2018-09-18 23:25:17 +00:00
|
|
|
|
2018-08-31 21:40:54 +00:00
|
|
|
;; Package initialize occurs automatically, before `user-init-file' is
|
|
|
|
;; loaded, but after `early-init-file'. Doom handles package
|
|
|
|
;; initialization, so we must prevent Emacs from doing it early!
|
|
|
|
(setq package-enable-at-startup nil)
|
2018-06-16 09:38:19 +00:00
|
|
|
|
|
|
|
;; Prevent the glimpse of un-styled Emacs by setting these early.
|
2018-09-28 14:09:12 +00:00
|
|
|
(add-to-list 'default-frame-alist '(tool-bar-lines . 0))
|
|
|
|
(add-to-list 'default-frame-alist '(menu-bar-lines . 0))
|
2018-08-31 21:40:54 +00:00
|
|
|
(add-to-list 'default-frame-alist '(vertical-scroll-bars))
|
2019-03-02 08:54:04 +00:00
|
|
|
|
|
|
|
;; One less file to load at startup
|
|
|
|
(setq site-run-file nil)
|