-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.el
278 lines (237 loc) · 7.01 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
(require 'use-package)
(use-package
yaml-mode
:ensure t
:init (dolist (extension '("yml" "yaml" "sls"))
(add-to-list 'auto-mode-alist `(,(concat "\\." extension "$") . yaml-mode))))
(use-package
web-mode
:ensure t
:init (dolist (extension '("html" "phtml" "tpl" "php" "jsp" "as[cp]x" "erb" "mustache" "djhtml"))
(add-to-list 'auto-mode-alist `(,(concat "\\." extension "\\'") . web-mode)))
:config (setq web-mode-engines-alist '(("django" . "\\.html\\'"))))
(use-package
yasnippet
:ensure t
:config (progn
(set 'yas-snippet-dirs `(,(concat user-emacs-directory "yasnippet-snippets")))
(yas-global-mode t)
(dolist (pair '(("<tab>" . nil)
("TAB" . nil)
("M-§" . yas-expand)))
(define-key yas-minor-mode-map (kbd (car pair))
(cdr pair)))))
(use-package
centered-cursor-mode
:ensure t
:config (progn (global-centered-cursor-mode t)
(setq ccm-recenter-at-end-of-file t)))
(use-package
smartparens-mode
:ensure smartparens
:diminish smartparens-mode
:init (progn
(require 'smartparens-config)
(smartparens-global-mode 1)
(set-default 'sp-autoescape-string-quote nil))
:bind (("C-{" . sp-select-previous-thing)
("C-}" . sp-select-next-thing)))
(use-package
whitespace
:ensure t
:config (progn
(set 'whitespace-style '(trailing tabs lines-tail indentation:
:space face))
(set 'whitespace-line-column 78)
(setq whitespace-style '(face tabs trailing tab-mark))
(global-whitespace-mode)))
(use-package
powerline
:ensure t
:config (powerline-center-theme))
(use-package
virtualenvwrapper
:ensure t
:config (progn (venv-initialize-interactive-shells) ;; if you want interactive shell support
(venv-initialize-eshell) ;; if you want eshell support
(setq venv-location (file-name-as-directory (expand-file-name ".envs" "~")))))
(use-package
hippie-expand
:init (progn
(setq my-hippie-expand-line (make-hippie-expand-function '(try-expand-line
try-expand-line-all-buffers)
t))
(bind-key "±" my-hippie-expand-line)
(setq hippie-expand-try-functions-list '(try-expand-dabbrev try-expand-dabbrev-all-buffers
try-expand-dabbrev-from-kill
try-expand-all-abbrevs)))
:bind (("M-/" . hippie-expand)
("§" . hippie-expand)))
(use-package
ls-lisp
;; :ensure t
:config (progn
(setq ls-lisp-use-insert-directory-program nil)
(setq ls-lisp-verbosity nil)))
(use-package
projectile
:ensure t
:init (progn (projectile-global-mode)
(set 'projectile-mode-line
'(:eval (format " P[%s]" (projectile-project-name)))))
:bind (("C-x p o" . helm-projectile)))
(use-package
helm
:ensure t
:init (progn
(require 'helm-config)
(setq helm-buffer-max-length 32)
(setq helm-split-window-default-side 'other))
:bind (("M-x" . helm-M-x)
("C-x C-m" . helm-M-x)
("C-x b" . helm-buffers-list)
("C-x C-f" . helm-find-files)))
(use-package
helm-projectile
:ensure t
:bind (("C-x p h". helm-projectile-find-file)))
(use-package
multiple-cursors
:ensure t
:config (multiple-cursors-mode)
:bind (("C->" . mc/mark-next-like-this)
("C-<" . mc/mark-previous-like-this)))
(use-package
phi-search
:ensure t
:bind (("C-s" . phi-search)
("C-r" . phi-search-backward)))
(use-package
phi-search-mc
:ensure t
:bind (("C-c C-m" . phi-search-mc/mark-all)))
(use-package
flycheck
:ensure t
:init (progn
(setq flycheck-python-flake8-executable "~/.envs/emacs/bin/flake8")
(setq flycheck-sh-shellcheck-executable "shellcheck")
(setq flycheck-idle-change-delay 5)
(global-flycheck-mode)))
(use-package
string-inflection
:ensure t
:bind ("C-c i" . string-inflection-cycle))
(use-package
phi-rectangle
:ensure t
:bind (("C-x r C-SPC" . phi-rectangle-set-mark-command )
;; ("C-x r C-x" . rm-exchange-point-and-mark)
("C-x r C-k" . phi-rectangle-kill-region)
("C-x r S-c" . phi-rectangle-kill-ring-save)))
(use-package
scratch
:ensure t)
(use-package
magit
:ensure t
:init (progn
(setq magit-commit-show-diff nil))
:config (progn (magit-add-section-hook 'magit-status-sections-hook
'magit-insert-unpushed-to-upstream
'magit-insert-unpushed-to-upstream-or-recent 'replace))
:bind (("C-x g" . magit-status)))
(use-package
jade-mode
:ensure t)
(use-package
json-mode
:ensure t)
(use-package
racket-mode)
(use-package
sx
:ensure t)
(use-package
hydra
:ensure t)
(use-package
expand-region
:ensure t
:bind (("C-=" . er/expand-region)))
(use-package
dockerfile-mode
:ensure t
:init (progn (add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))
(add-to-list 'auto-mode-alist '("\\.docker\\'" . dockerfile-mode))))
(use-package editorconfig
:ensure t
:config
(editorconfig-mode 1))
(use-package
markdown-mode
:ensure t
:init (add-hook 'markdown-mode-hook 'turn-on-orgtbl)
:bind (:map markdown-mode-command-map
("M-p" . backward-paragraph)
("M-n" . forward-paragraph)))
(use-package
guide-key
:ensure t
:config (progn
(setq guide-key/guide-key-sequence '("C-x r" "C-x 4"))
(setq guide-key/popup-window-position 'bottom))
:init (guide-key-mode 1))
(use-package
flx-ido
:ensure t
:init (progn (ido-mode t)
(ido-everywhere t)
(flx-ido-mode t)))
(use-package
org-journal
:ensure t
:custom
(org-journal-dir "~/.journal/")
(org-journal-date-format "%A, %d %B %Y")
)
(use-package
rainbow-delimiters
:ensure t
:init (progn (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
(add-hook 'racket-repl-mode-hook #'rainbow-delimiters-mode)))
(use-package
racket-mode
:ensure t)
(use-package
which-key
:ensure t
:init (which-key-mode))
(use-package
company
:ensure t
:init (company-mode))
(use-package
spaceline
:ensure t
:init (progn
(require 'spaceline-config)
(spaceline-spacemacs-theme)))
(use-package
google-this
:ensure t)
(use-package
dumb-jump
:ensure t
:config (setq dumb-jump-selector 'helm)
:bind (("M-g o" . dumb-jump-go-other-window)
("M-g j" . dumb-jump-go)
("M-g i" . dumb-jump-go-prompt)
("M-g x" . dumb-jump-go-prefer-external)
("M-g z" . dumb-jump-go-prefer-external-other-window)))
(use-package
deadgrep
:ensure t)
(use-package
s
:ensure t)