-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackages.el
109 lines (104 loc) · 2.2 KB
/
packages.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
(require 'package)
(require 'cl)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(defvar asok/packages
'(evil
evil-surround
evil-indent-textobject
evil-matchit
evil-easymotion
hydra
beacon
string-inflection
smartparens
diminish
haml-mode
markdown-mode
bundler
yaml-mode
nodejs-repl
;; mmm-mode
;; rbenv
chruby
ace-jump-mode
magit
;; readline-complete
rspec-mode
slim-mode
dash
elisp-slime-nav
expand-region
flycheck
helm
helm-swoop
;; ido-ubiquitous
flx-ido
ido-vertical-mode
rainbow-mode
rainbow-delimiters
smex
solarized-theme
anti-zenburn-theme
undo-tree
;; volatile-highlights
yasnippet
exec-path-from-shell
ruby-end
zenburn-theme
ample-theme
grizzl
prodigy
;; auto-complete
company
robe
helm-ag
js2-mode
ag
scss-mode
web-mode
jsx-mode
ruby-refactor
lorem-ipsum
feature-mode
projectile
helm-projectile
less-css-mode
helm-dash
helm-projectile
discover
cider
cljsbuild-mode
aggressive-indent
whitespace-cleanup-mode
highlight-indentation
lorem-ipsum
web-beautify
coffee-mode
emmet-mode
evil-commentary
fullframe
wgrep
wgrep-ag
skewer-mode
engine-mode
nameless
color-theme-sanityinc-tomorrow
edit-server
)
"List of packages installed via package.el")
(defun asok/install-packages ()
(package-initialize)
(when (notevery #'package-installed-p asok/packages)
(package-refresh-contents)
(mapc #'package-install
(remove-if #'package-installed-p asok/packages))))
(defun asok/init-packages ()
(loop for package in (append asok/packages (asok/discover-site-lisp-packages)) do
(let ((file (concat "~/.emacs.d/inits/init-" (symbol-name package))))
(when (file-exists-p (concat file ".el"))
(load file)))))
(defun asok/discover-site-lisp-packages ()
(let ((root "~/.emacs.d/site-lisp/"))
(mapcar #'(lambda (dir) (add-to-list 'load-path (concat root dir)) (intern dir))
(directory-files root nil "^[^.]+$"))))