Skip to content

Commit

Permalink
Improve update functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Aug 20, 2019
1 parent c7ce793 commit a4d59b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lisp/init-funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,17 @@
(defalias 'centaur-update-config 'update-config)

(declare-function upgrade-packages 'init-package)
(defalias 'centaur-update-packages 'upgrade-packages)
(defun centaur-update-packages ()
"Refresh package contents and upgrade all packages."
(interactive)
(package-refresh-contents)
(upgrade-packages))

(defun update-config-and-packages()
"Update confgiurations and packages."
(interactive)
(update-config)
(upgrade-packages nil))
(centaur-update-packages))
(defalias 'centaur-update 'update-config-and-packages)

(defun update-all()
Expand Down

0 comments on commit a4d59b4

Please sign in to comment.