Do not disable package initialization on startup

This is some relic from former configurations, and might have been wrong quite
some time now.  However, in Emacs 27+, package initialization is done before
loading user-init-file, and thus we don't have to do it by hand.  Before that,
package initialization was done after reading user-init-file, but before calling
after-init-hook, and since we needed to load some packages in the init file, we
had to initialize package.el ourselves.
This commit is contained in:
Daniel - 2020-08-27 15:20:24 +02:00
parent 1ba91b3271
commit ae77ece055
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
2 changed files with 2 additions and 5 deletions

View File

@ -9,5 +9,3 @@
("gnu" . "https://elpa.gnu.org/packages/")
("melpa-stable" . "https://stable.melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")))
(setq package-enable-at-startup nil)

View File

@ -33,9 +33,8 @@
;; * Packages
(when (< emacs-major-version 27)
;; Before Emacs 27.1, we have to do package initialization ourselves. In
;; Emacs 27.1 and later, it's done in early-init.el, and calling
;; `package-initialize' is not necessary anymore. See
;; Before Emacs 27.1, we had to do package initialization ourselves. In Emacs
;; 27.1 and later, it's done in early-init.el. See
;; https://www.gnu.org/software/emacs/news/NEWS.27.1
(load-file (expand-file-name "early-init.el" emacs-d))
(package-initialize))