Change order of operations for my/package-ensure-installed

More efficient by not needing to refresh package list twice
This commit is contained in:
Evie Litherland-Smith 2024-08-18 08:06:32 +01:00
parent 8cae6d4ddd
commit 65bbe5327f

View file

@ -24,10 +24,9 @@ Configure package archives and initialise.
"Ensure packages in `package-selected-packages' are installed." "Ensure packages in `package-selected-packages' are installed."
(interactive) (interactive)
(require 'package) (require 'package)
(package-refresh-contents)
(package-install-selected-packages t)
(package-autoremove) (package-autoremove)
(package-upgrade-all nil)) (package-upgrade-all nil)
(package-install-selected-packages t))
#+end_src #+end_src
** Defaults ** Defaults
Set some useful defaults. Some of these should be moved to relevant Set some useful defaults. Some of these should be moved to relevant