doomemacs/early-init.el

19 lines
771 B
EmacsLisp
Raw Normal View History

2018-03-22 03:21:18 +08:00
;;; early-init.el -*- lexical-binding: t; -*-
2018-03-28 12:41:57 +08: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-22 03:21:18 +08: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)
;; Faster to disable these here (before they've been initialized)
(setq tool-bar-mode nil
menu-bar-mode nil
scroll-bar-mode nil)
(modify-all-frames-parameters '((vertical-scroll-bars)))
2018-03-28 12:41:57 +08:00
;; TODO Once Emacs 27 hits stable, perhaps replace init.el with early-init.el