From ae77ece05544d5af46c9fb3f897a3f903f865aa3 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 27 Aug 2020 15:20:24 +0200 Subject: [PATCH] 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. --- early-init.el | 2 -- init.el | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/early-init.el b/early-init.el index 98c36da..6470ac9 100644 --- a/early-init.el +++ b/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) diff --git a/init.el b/init.el index f081d04..7b46ea2 100644 --- a/init.el +++ b/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))