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")

View file

@ -42,7 +42,7 @@
(defvar prelude-packages
'(ace-jump-mode ack-and-a-half anzu dash diminish elisp-slime-nav
expand-region flx-ido flycheck gist
epl expand-region flx-ido flycheck gist
git-commit-mode gitconfig-mode gitignore-mode grizzl
guru-mode helm helm-projectile ido-ubiquitous
key-chord magit move-text rainbow-mode