2018-03-21 15:21:18 -04:00
|
|
|
;;; early-init.el -*- lexical-binding: t; -*-
|
|
|
|
|
2018-03-28 00:41:57 -04:00
|
|
|
;; Emacs HEAD (27+) introduces early-init.el, which is run before init.el,
|
|
|
|
;; before most of its package and UI initialization happens. We can use this
|
|
|
|
;; opportunity to cull parts of the startup process early.
|
|
|
|
|
2018-03-21 15:21:18 -04: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-03-28 00:41:46 -04:00
|
|
|
;; Faster to disable these here (before they've been initialized)
|
|
|
|
(setq tool-bar-mode nil
|
2018-05-20 12:21:13 +02:00
|
|
|
menu-bar-mode nil
|
|
|
|
scroll-bar-mode nil)
|
|
|
|
(modify-all-frames-parameters '((vertical-scroll-bars)))
|
2018-03-28 00:41:57 -04:00
|
|
|
|
|
|
|
;; TODO Once Emacs 27 hits stable, perhaps replace init.el with early-init.el
|