I'm having quite a bit of trouble getting use-package
to automatically install packages in emacs27
I deleted a package using package-delete
and restarted emacs. On emacs26, use-package
would automatically install the package by connecting to MELPA. But on emacs27, I'm getting the below error:
Error (use-package): Failed to install anzu: package.el is not yet initialized!
Error (use-package): Cannot load anzu
Warning (initialization): An error occurred while loading ‘/Users/csraghunandan/.emacs.d/init.el’:
error: package.el is not yet initialized!
Here is my emacs configuration
Anybody know how I can fix this issue? Is there anything I need to add to my early-init.el
file?
(setq package-enable-at-startup nil)
. And with that I use the same init.el as before 27 and call(package-initialize)
in there.