make-update.el (793B)
1 ;;* list of the all dependencies 2 (defvar dev-packages '(avy)) 3 4 ;;* initialize package.el 5 (setq package-user-dir 6 (expand-file-name (format "~/.elpa/%s/elpa" emacs-version))) 7 (message "installing in %s ...\n" package-user-dir) 8 (package-initialize) 9 (setq package-archives 10 '(("melpa" . "https://melpa.org/packages/") 11 ("gnu" . "http://elpa.gnu.org/packages/"))) 12 (package-refresh-contents) 13 14 ;;* install dependencies 15 (dolist (package dev-packages) 16 (unless (package-installed-p package) 17 (ignore-errors 18 (package-install package)))) 19 20 ;;* upgrade dependencies 21 (save-window-excursion 22 (package-list-packages t) 23 (condition-case nil 24 (progn 25 (package-menu-mark-upgrades) 26 (package-menu-execute t)) 27 (error 28 (message "All packages up to date"))))