Do an automatic package upgrade in prelude-update

This commit is contained in:
Bozhidar Batsov 2013-10-22 15:37:05 +03:00
parent 82513bf204
commit 3c8c7dec05
3 changed files with 23 additions and 14 deletions

View file

@ -450,10 +450,14 @@ Doesn't mess with special buffers."
(exchange-point-and-mark)
(deactivate-mark nil))
(require 'epl)
(defun prelude-update ()
"Update Prelude to its latest version."
(interactive)
(when (y-or-n-p "Do you want to update Prelude? ")
(message "Updating installed packages...")
(epl-upgrade)
(message "Updating Prelude...")
(cd prelude-dir)
(shell-command "git pull")