forked from Ailrun/yet-another-emacs-settings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.el
240 lines (212 loc) · 5.03 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
;; list the packages to install
(defconst install-package-list '(
;;packages for package managing
package-utils
use-package
req-package
paradox
;;packages for C
c-eldoc
;;packages for C++
demangle-mode
function-args
;;pacakges for C/C++
cff
company-c-headers
dummy-h-mode
disaster
msvc
irony
irony-eldoc
company-irony
company-irony-c-headers
;;packages for C#
csharp-mode
omnisharp
;;packages for objective-C
objc-font-lock
;;There is lack of packages (really?)
;;packages for python
abl-mode
anaconda-mode
cinspect
company-jedi
elpy
;;jedi
;;jedi-direx
live-py-mode
;;nose
pungi
;;py-autopep8
py-gnitset
py-import-check
py-smart-operator
py-test
py-yapf
pydoc
pydoc-info
pyenv-mode
pyfmt
pyimpsort
pylint
pytest
python
python-docstring
python-environment
python-info
python-mode
python-x
python3-info
pythonic
pyvenv
sphinx-doc
sphinx-frontend
therapy
tox
virtualenv
;;packages for java
autodisass-java-bytecode
;;helm-jstack
java-imports
java-snippets
javadoc-lookup
;;javaimp
jdee
;;jtags
thread-dump
;;packages for jade
jade-mode
;;packages for css
skewer-reload-stylesheets
;;packages for less
less-css-mode
skewer-less
;;packages for javascript
js2-highlight-vars angular-mode
;;conkeror-minor-mode
import-js
;;js-comint
js-doc
js2-closure
js2-refactor
;;jscs
;;jsfmt
jss
;;kite
;;kite-mini
;;lived-mode
skewer-mode
;;packages for typescript
typescript-mode
;;packages for coffeescript
coffee-mode
;;packages for json
json-mode
;;packages for node
nodejs-repl
node-resolver
nvm
;;pacakges for web dev
multi-web-mode
restclient
web-beautify
web-mode
company-web
;;html-script-src
;;packages for mysql
emacsql-mysql
;;package for haskell
haskell-mode
haskell-tab-indent
ghc
company-ghc
ghc-imported-from
ghci-completion
haskell-snippets
;;hi2
;;hyai
hindent
shm
;;helm-ghc
;;helm-hoogle
;;packages for elisp
slime
haskell-emacs
haskell-emacs-base
haskell-emacs-text
;;pacakges for markdown
markdown-mode+
markdown-preview-eww
markdown-preview-mode
;;pacakges for git
;;helm-git
;;helm-git-files
;;helm-git-grep
;;helm-gitignore
;;helm-ls-git
egg
gh
gitconfig
gitignore-mode
gitconfig-mode
gitattributes-mode
;;packages for project managing
gtags
ggtags
;;helm-gtags
;;helm-make
projectile
;;helm-projectile
how-many-lines-in-project
;;packages for aws
;;helm-aws
;;common packages
vlf
emr
aggressive-indent
async
guide-key
expand-region
undo-tree
vline
visible-color-code
highline
;;helm
;;helm-mode-manager
sr-speedbar
rainbow-delimiters
smartparens
))
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
;; ("marmalade" . "https://marmalade.ferrier.me.uk/packages/")
("melpa" . "https://melpa.org/packages/")
("elpa" . "http://tromey.com/elpa/")
("org" . "http://orgmode.org/elpa/")
("sunrise" . "http://joseito.republika.pl/sunrise-commander/")
))
(eval-when-compile (package-initialize))
(defun install-package (package)
"install package"
(if (null (require package nil t))
(progn (let* ((ARCHIVES (if (null package-archive-contents)
(progn (package-refresh-contents)
package-archive-contents)
package-archive-contents))
(AVAIL (assoc package ARCHIVES)))
(if AVAIL
(package-install package)))
(require package))))
(install-package 'use-package)
(require 'use-package)
(use-package req-package
:ensure t)
;;(install-package 'req-package)
;;(package-initialize)
;;(or (file-exists-p package-user-dir)
;; (package-refresh-contents))
;;(dolist (package install-package-list)
;; (unless (package-installed-p package)
;; (package-install package)))
(makunbound 'install-package-list)