I have this line in the early-init.el
file:
(setq package-enable-at-startup nil)
and these lines in the init.el
file:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(setq package-archive-priorities '(("melpa" . 100)
("gnu" . 50)
("nongnu" . 25)))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package use-package
:init
(setq use-package-always-ensure t)
(use-package use-package-ensure-system-package
:ensure t))
I'm not sure if I understood correctly because I'm not a native English speaker but from what I read online it seemed to me that the (package-initialize)
is not needed anymore in the init file since Emacs 27. However I'm not sure about it. Is that true?
I'm using Emacs 28.1. So, in my case should l get rid of the (package-initialize)
line and set the package-enable-at-startup
variable to t
in early-init.el
instead of nil
? I'm not planning to use anything lower than Emacs 28 in the future.