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.
40 lines
1.3 KiB
40 lines
1.3 KiB
(require 'cl) |
|
|
|
(defvar my-packages '(ag auto-complete |
|
cc-mode |
|
yaml-mode |
|
markdown-mode |
|
counsel |
|
expand-region |
|
flycheck |
|
grizzl |
|
fill-column-indicator |
|
feature-mode |
|
flycheck-pos-tip |
|
gitignore-mode |
|
golden-ratio |
|
swiper |
|
linum-relative |
|
magit |
|
neotree |
|
paredit |
|
smex |
|
powerline |
|
projectile |
|
wrap-region |
|
rainbow-delimiters |
|
zenburn-theme) |
|
"Packages to make sure are installed") |
|
|
|
(defun my-packages-installed-p () |
|
(loop for p in my-packages |
|
when (not (package-installed-p p)) do (return nil) |
|
finally (return t))) |
|
|
|
(unless (my-packages-installed-p) |
|
;; check for new packages (package versions) |
|
(package-refresh-contents) |
|
;; install the missing packages |
|
(dolist (p my-packages) |
|
(when (not (package-installed-p p)) |
|
(package-install p))))
|
|
|