forked from Fuco1/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoinstall.el
74 lines (72 loc) · 1.29 KB
/
autoinstall.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
(defvar autoinstall-packages
'(
ag
bookmark+
browse-kill-ring
dash
dash-functional
diminish
dired+
dired-details
eldoc-eval
eimp
eldoc-eval
elfeed
emmet-mode
expand-region
f
flx
flx-ido
fold-this
fuzzy-match
google-this
haskell-mode
helm-descbinds
hydra
ibuffer-vc
icicles
ido-ubiquitous
jump-char
keyfreq
legalese
macrostep
magit
make-it-so
malabar-mode
markdown-mode
markdown-mode+
multi-web-mode
multiple-cursors
noflet
notmuch
notmuch-unread
org-plus-contrib
ov
paren-face
php-eldoc
php-mode
php-refactor-mode
pos-tip
projectile
rainbow-mode
s
shell-pop
smartscan
smex
undo-tree
visual-regexp
w3m
wgrep-ag
world-time-mode
)
"A list of packages to ensure are installed at launch.")
(when (--any? (not (package-installed-p it)) autoinstall-packages)
;; check for new packages (package versions)
(message "%s" "Emacs is now refreshing its package database...")
(package-refresh-contents)
(message "%s" " done.")
;; install the missing packages
(dolist (p autoinstall-packages)
(when (not (package-installed-p p))
(package-install p))))
(provide 'autoinstall)