;; Copyright (C) 2017 Free Software Foundation, Inc. (setq package-user-dir (expand-file-name (format ".cask/%s/elpa" emacs-version))) (require 'dired) (dired-create-directory package-user-dir) (message "installing in %s ...\n" package-user-dir) (package-initialize) (setq package-archives '(("melpa" . "http://melpa.org/packages/") ("gnu" . "http://elpa.gnu.org/packages/"))) (package-refresh-contents) (defconst tiny-dev-packages '(undercover)) (dolist (package tiny-dev-packages) (unless (package-installed-p package) (ignore-errors (package-install package)))) (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"))))