Browse Source

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.
master
Daniel Borchmann 2 years ago
parent
commit
ae77ece055
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
  1. 2
      early-init.el
  2. 5
      init.el

2
early-init.el

@ -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)

5
init.el

@ -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))

Loading…
Cancel
Save