No-op package--ensure-init-file completely

Rather than setting package--init-file-ensured to nil. It's less work
for Emacs at startup and is functionally equivalent.
This commit is contained in:
Henrik Lissner 2019-12-27 01:41:14 -05:00
parent 995617edf1
commit a02cfdc365
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,7 @@
;; 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)
(advice-add #'package--ensure-init-file :override #'ignore)
;; Prevent the glimpse of un-styled Emacs by disabling these UI elements early.
(push '(menu-bar-lines . 0) default-frame-alist)