Skip to content

Commit a4d59b4

Browse files
committed
Improve update functions.
1 parent c7ce793 commit a4d59b4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lisp/init-funcs.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,17 @@
105105
(defalias 'centaur-update-config 'update-config)
106106

107107
(declare-function upgrade-packages 'init-package)
108-
(defalias 'centaur-update-packages 'upgrade-packages)
108+
(defun centaur-update-packages ()
109+
"Refresh package contents and upgrade all packages."
110+
(interactive)
111+
(package-refresh-contents)
112+
(upgrade-packages))
109113

110114
(defun update-config-and-packages()
111115
"Update confgiurations and packages."
112116
(interactive)
113117
(update-config)
114-
(upgrade-packages nil))
118+
(centaur-update-packages))
115119
(defalias 'centaur-update 'update-config-and-packages)
116120

117121
(defun update-all()

0 commit comments

Comments
 (0)