diff --git a/settings/setup-package.el b/settings/setup-package.el index 71096dbe0..11b166291 100644 --- a/settings/setup-package.el +++ b/settings/setup-package.el @@ -1,15 +1,19 @@ (require 'package) -(require 'dash) ;; Add melpa to package repos -(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t) +(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (package-initialize) (unless (file-exists-p "~/.emacs.d/elpa/archives/melpa") (package-refresh-contents)) +(if (not (package-installed-p 'dash)) + (package-install 'dash)) + +(require 'dash) + (defun packages-install (packages) (--each packages (when (not (package-installed-p it))