Change order of operations for my/package-ensure-installed
More efficient by not needing to refresh package list twice
This commit is contained in:
parent
8cae6d4ddd
commit
65bbe5327f
|
@ -24,10 +24,9 @@ Configure package archives and initialise.
|
|||
"Ensure packages in `package-selected-packages' are installed."
|
||||
(interactive)
|
||||
(require 'package)
|
||||
(package-refresh-contents)
|
||||
(package-install-selected-packages t)
|
||||
(package-autoremove)
|
||||
(package-upgrade-all nil))
|
||||
(package-upgrade-all nil)
|
||||
(package-install-selected-packages t))
|
||||
#+end_src
|
||||
** Defaults
|
||||
Set some useful defaults. Some of these should be moved to relevant
|
||||
|
|
Loading…
Reference in a new issue