You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
793 B
28 lines
793 B
;;* list of the all dependencies |
|
(defvar dev-packages '(avy)) |
|
|
|
;;* initialize package.el |
|
(setq package-user-dir |
|
(expand-file-name (format "~/.elpa/%s/elpa" emacs-version))) |
|
(message "installing in %s ...\n" package-user-dir) |
|
(package-initialize) |
|
(setq package-archives |
|
'(("melpa" . "https://melpa.org/packages/") |
|
("gnu" . "http://elpa.gnu.org/packages/"))) |
|
(package-refresh-contents) |
|
|
|
;;* install dependencies |
|
(dolist (package dev-packages) |
|
(unless (package-installed-p package) |
|
(ignore-errors |
|
(package-install package)))) |
|
|
|
;;* upgrade dependencies |
|
(save-window-excursion |
|
(package-list-packages t) |
|
(condition-case nil |
|
(progn |
|
(package-menu-mark-upgrades) |
|
(package-menu-execute t)) |
|
(error |
|
(message "All packages up to date"))))
|
|
|