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:
parent
1ba91b3271
commit
ae77ece055
|
@ -9,5 +9,3 @@
|
||||||
("gnu" . "https://elpa.gnu.org/packages/")
|
("gnu" . "https://elpa.gnu.org/packages/")
|
||||||
("melpa-stable" . "https://stable.melpa.org/packages/")
|
("melpa-stable" . "https://stable.melpa.org/packages/")
|
||||||
("org" . "https://orgmode.org/elpa/")))
|
("org" . "https://orgmode.org/elpa/")))
|
||||||
|
|
||||||
(setq package-enable-at-startup nil)
|
|
||||||
|
|
5
init.el
5
init.el
|
@ -33,9 +33,8 @@
|
||||||
;; * Packages
|
;; * Packages
|
||||||
|
|
||||||
(when (< emacs-major-version 27)
|
(when (< emacs-major-version 27)
|
||||||
;; Before Emacs 27.1, we have to do package initialization ourselves. In
|
;; Before Emacs 27.1, we had to do package initialization ourselves. In Emacs
|
||||||
;; Emacs 27.1 and later, it's done in early-init.el, and calling
|
;; 27.1 and later, it's done in early-init.el. See
|
||||||
;; `package-initialize' is not necessary anymore. See
|
|
||||||
;; https://www.gnu.org/software/emacs/news/NEWS.27.1
|
;; https://www.gnu.org/software/emacs/news/NEWS.27.1
|
||||||
(load-file (expand-file-name "early-init.el" emacs-d))
|
(load-file (expand-file-name "early-init.el" emacs-d))
|
||||||
(package-initialize))
|
(package-initialize))
|
||||||
|
|
Loading…
Reference in New Issue