commit | author | age
|
5cb5f7
|
1 |
;; adding modules to load path |
d070a7
|
2 |
;; (add-to-list 'load-path "~/.emacs.d/custom/") |
C |
3 |
;; (add-to-list 'load-path "~/.emacs.d/elpa/") |
5cb5f7
|
4 |
|
C |
5 |
;; load your modules |
d070a7
|
6 |
;; (require 'setup-applications) |
C |
7 |
;; (require 'setup-communication) |
|
8 |
;; (require 'setup-convenience) |
|
9 |
;; (require 'setup-data) |
|
10 |
;; (require 'setup-development) |
|
11 |
;; (require 'setup-editing) |
|
12 |
;; (require 'setup-environment) |
|
13 |
;; (require 'setup-external) |
|
14 |
;; (require 'setup-faces) |
|
15 |
;; (require 'setup-files) |
|
16 |
;; (require 'setup-help) |
|
17 |
;; (require 'setup-programming) |
|
18 |
;; (require 'setup-text) |
|
19 |
;; (require 'setup-local) |
5cb5f7
|
20 |
|
a4b917
|
21 |
;; Repos |
5cb5f7
|
22 |
(require 'package) |
d070a7
|
23 |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") |
C |
24 |
("melpa" . "https://melpa.org/packages/") |
|
25 |
("org" . "https://orgmode.org/elpa/"))) |
|
26 |
(package-initialize) |
a4b917
|
27 |
|
C |
28 |
;; use-package |
|
29 |
(unless (package-installed-p 'use-package) |
|
30 |
(package-refresh-contents) |
|
31 |
(package-install 'use-package)) |
|
32 |
|
|
33 |
(eval-when-compile |
|
34 |
(require 'use-package)) |
5cb5f7
|
35 |
|
707431
|
36 |
;; auto-package-update |
C |
37 |
(use-package auto-package-update |
9c4cf0
|
38 |
:ensure t |
707431
|
39 |
:config |
e75a20
|
40 |
(setq auto-package-update-delete-old-versions t) |
C |
41 |
(setq auto-package-update-hide-results t) |
|
42 |
(auto-package-update-maybe)) |
|
43 |
|
d070a7
|
44 |
;; diminish |
C |
45 |
(use-package diminish |
|
46 |
:ensure t) |
707431
|
47 |
|
d070a7
|
48 |
;; redirect to org config file |
C |
49 |
(when (file-readable-p "~/.emacs.d/config.org") |
|
50 |
(org-babel-load-file "~/.emacs.d/config.org")) |
be0bc3
|
51 |
|
C |
52 |
;; CEDET |
d070a7
|
53 |
;; (use-package semantic |
C |
54 |
;; :config |
|
55 |
;; (global-semanticdb-minor-mode 1) |
|
56 |
;; (global-semantic-idle-scheduler-mode 1) |
|
57 |
;; (global-semantic-idle-summary-mode 1) |
|
58 |
;; (semantic-mode 1)) |
be0bc3
|
59 |
|
d070a7
|
60 |
;; (use-package ede |
C |
61 |
;; :config |
|
62 |
;; (global-ede-mode t)) |
ffe3f5
|
63 |
|
d070a7
|
64 |
;; (setq |
C |
65 |
;; ;; use gdb-many-windows by default |
|
66 |
;; gdb-many-windows t |
be0bc3
|
67 |
|
d070a7
|
68 |
;; ;; Non-nil means display source file containing the main routine at startup |
C |
69 |
;; gdb-show-main t) |
be0bc3
|
70 |
|
d070a7
|
71 |
;; ;; undo-tree |
C |
72 |
;; (use-package undo-tree |
|
73 |
;; :ensure t |
|
74 |
;; :config |
|
75 |
;; (global-undo-tree-mode)) |
5cb5f7
|
76 |
|
d070a7
|
77 |
;; ;; volatile highlights |
C |
78 |
;; (use-package volatile-highlights |
|
79 |
;; :ensure t |
|
80 |
;; :config |
|
81 |
;; (volatile-highlights-mode t)) |
5cb5f7
|
82 |
|
d070a7
|
83 |
;; ;; yasnippet |
C |
84 |
;; (use-package yasnippet |
|
85 |
;; :ensure t |
|
86 |
;; :config |
|
87 |
;; (yas-global-mode 1)) |
5cb5f7
|
88 |
|
d070a7
|
89 |
;; ;; ggtags |
C |
90 |
;; (use-package ggtags |
|
91 |
;; :ensure t |
|
92 |
;; :config |
|
93 |
;; (add-hook 'c-mode-common-hook |
|
94 |
;; (lambda |
|
95 |
;; (when (derived-mode-p 'c-mode 'c++-mode 'java-mode) |
|
96 |
;; (ggtags-mode 1))))) |
5cb5f7
|
97 |
|
d070a7
|
98 |
;; ;; workgroups2 |
C |
99 |
;; (use-package workgroups2 |
|
100 |
;; :ensure t |
|
101 |
;; :config |
|
102 |
;; (workgroups-mode 1)) |
5cb5f7
|
103 |
|
d070a7
|
104 |
;; ;; smartparens |
C |
105 |
;; (use-package smartparens |
|
106 |
;; :ensure t |
|
107 |
;; :diminish smartparens-mode |
|
108 |
;; :config |
|
109 |
;; (progn |
|
110 |
;; (require 'smartparens-config) |
|
111 |
;; (smartparens-global-mode 1))) |
5cb5f7
|
112 |
|
d070a7
|
113 |
;; ;; clean-aindent-mode |
C |
114 |
;; (use-package clean-aindent-mode |
|
115 |
;; :ensure t |
|
116 |
;; :hook prog-mode) |
5cb5f7
|
117 |
|
d070a7
|
118 |
;; ;; company config |
C |
119 |
;; (use-package company |
|
120 |
;; :ensure t |
|
121 |
;; :init (global-company-mode) |
|
122 |
;; :config |
|
123 |
;; (add-hook 'c-mode-common-hook |
|
124 |
;; (lambda () |
|
125 |
;; (define-key c-mode-base-map [(tab)] 'company-complete)))) |
5cb5f7
|
126 |
|
d070a7
|
127 |
;; (use-package company-c-headers |
C |
128 |
;; :ensure t |
|
129 |
;; :after company |
|
130 |
;; :config |
|
131 |
;; (add-to-list 'company-backends 'company-c-headers)) |
178ab9
|
132 |
|
d070a7
|
133 |
;; (use-package company-math |
C |
134 |
;; :ensure t |
|
135 |
;; :after company |
|
136 |
;; :config |
|
137 |
;; (add-to-list 'company-backends 'company-math-symbols-unicode)) |
9c4cf0
|
138 |
|
d070a7
|
139 |
;; ;; projectile config |
C |
140 |
;; (use-package projectile |
|
141 |
;; :ensure t |
|
142 |
;; :bind (("C-c p" . projectile-command-map)) |
|
143 |
;; :config |
|
144 |
;; (projectile-global-mode) |
|
145 |
;; (setq projectile-completion-system 'helm) |
|
146 |
;; (setq projectile-indexing-method 'alien)) |
5cb5f7
|
147 |
|
d070a7
|
148 |
;; ;; magit config |
C |
149 |
;; (use-package magit |
|
150 |
;; :ensure t |
|
151 |
;; :commands magit-get-top-dir |
|
152 |
;; :bind ("C-x g" . magit-status) |
|
153 |
;; :init |
|
154 |
;; (progn |
|
155 |
;; ;; make magit status go full-screen but remember previous window |
|
156 |
;; ;; settings |
|
157 |
;; ;; from: http://whattheemacsd.com/setup-magit.el-01.html |
|
158 |
;; (defadvice magit-status (around magit-fullscreen activate) |
|
159 |
;; (window-configuration-to-register :magit-fullscreen) |
|
160 |
;; ad-do-it |
|
161 |
;; (delete-other-windows)) |
5cb5f7
|
162 |
|
d070a7
|
163 |
;; ;; Close popup when commiting - this stops the commit window |
C |
164 |
;; ;; hanging around |
|
165 |
;; ;; From: http://git.io/rPBE0Q |
|
166 |
;; (defadvice git-commit-commit (after delete-window activate) |
|
167 |
;; (delete-window)) |
5cb5f7
|
168 |
|
d070a7
|
169 |
;; (defadvice git-commit-abort (after delete-window activate) |
C |
170 |
;; (delete-window)) |
707431
|
171 |
|
d070a7
|
172 |
;; :config |
C |
173 |
;; (progn |
|
174 |
;; ;; restore previously hidden windows |
|
175 |
;; (defadvice magit-quit-window (around magit-restore-screen activate) |
|
176 |
;; (let ((current-mode major-mode)) |
|
177 |
;; ad-do-it |
|
178 |
;; ;; we only want to jump to register when the last seen buffer |
|
179 |
;; ;; was a magit-status buffer. |
|
180 |
;; (when (eq 'magit-status-mode current-mode) |
|
181 |
;; (jump-to-register :magit-fullscreen))))) |
707431
|
182 |
|
d070a7
|
183 |
;; ;; magit settings |
C |
184 |
;; (setq |
|
185 |
;; ;; don't put "origin-" in front of new branch names by default |
|
186 |
;; magit-default-tracking-name-function 'magit-default-tracking-name-branch-only |
|
187 |
;; ;; open magit status in same window as current buffer |
|
188 |
;; magit-status-buffer-switch-function 'switch-to-buffer |
|
189 |
;; ;; highlight word/letter changes in hunk diffs |
|
190 |
;; magit-diff-refine-hunk t |
|
191 |
;; ;; ask me if I want to include a revision when rewriting |
|
192 |
;; magit-rewrite-inclusive 'ask |
|
193 |
;; ;; ask me to save buffers |
|
194 |
;; magit-save-some-buffers t |
|
195 |
;; ;; pop the process buffer if we're taking a while to complete |
|
196 |
;; magit-process-popup-time 10 |
|
197 |
;; ;; ask me if I want a tracking upstream |
|
198 |
;; magit-set-upstream-on-push 'askifnotset |
|
199 |
;; ))) |
707431
|
200 |
|
d070a7
|
201 |
;; ;; flycheck |
C |
202 |
;; (use-package flycheck |
|
203 |
;; :ensure t |
|
204 |
;; :init (global-flycheck-mode)) |
707431
|
205 |
|
d070a7
|
206 |
;; (use-package flycheck-pos-tip |
C |
207 |
;; :ensure t |
|
208 |
;; :after flycheck |
|
209 |
;; :config |
|
210 |
;; (flycheck-pos-tip-mode)) |
5cb5f7
|
211 |
|
d070a7
|
212 |
;; (use-package flycheck-clang-analyzer |
C |
213 |
;; :ensure t |
|
214 |
;; :after flycheck |
|
215 |
;; :config |
|
216 |
;; (flycheck-clang-analyzer-setup)) |
5cb5f7
|
217 |
|
d070a7
|
218 |
;; ;; nyan mode |
C |
219 |
;; (use-package nyan-mode |
|
220 |
;; :if window-system |
|
221 |
;; :ensure t |
|
222 |
;; :config |
|
223 |
;; (nyan-mode)) |
5cb5f7
|
224 |
|
d070a7
|
225 |
;; ;; semantic refactor |
C |
226 |
;; (use-package srefactor |
|
227 |
;; :ensure t |
|
228 |
;; :bind (("M-RET o" . 'srefactor-lisp-one-line) |
|
229 |
;; ("M-RET m" . 'srefactor-lisp-format-sexp) |
|
230 |
;; ("M-RET d" . 'srefactor-lisp-format-defun) |
|
231 |
;; ("M-RET b" . 'srefactor-lisp-format-buffer) |
|
232 |
;; :map c-mode-base-map |
|
233 |
;; ("M-RET" . 'srefactor-refactor-at-point) |
|
234 |
;; :map c++-mode-map |
|
235 |
;; ("M-RET" . 'srefactor-refactor-at-point))) |
2a15f9
|
236 |
|
d070a7
|
237 |
;; ;; which-key |
C |
238 |
;; (use-package which-key |
|
239 |
;; :ensure t |
|
240 |
;; :config |
|
241 |
;; (which-key-mode) |
|
242 |
;; (which-key-setup-side-window-bottom)) |
5cb5f7
|
243 |
|
d070a7
|
244 |
;; ;; x86 lookup |
C |
245 |
;; (use-package x86-lookup |
|
246 |
;; :ensure t |
|
247 |
;; :init |
|
248 |
;; (setq x86-lookup-pdf "D:/Coding/x86-instructions.pdf") |
|
249 |
;; :bind ("C-h x" . x86-lookup)) |
5cb5f7
|
250 |
|
d070a7
|
251 |
;; ;; org-bullets |
C |
252 |
;; (use-package org-bullets |
|
253 |
;; :ensure t |
|
254 |
;; :config |
|
255 |
;; (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))) |
8f6f27
|
256 |
|
d070a7
|
257 |
;; ;; pdf-tools |
C |
258 |
;; (use-package pdf-tools |
|
259 |
;; :ensure t |
|
260 |
;; :config |
|
261 |
;; (pdf-tools-install)) |
8f6f27
|
262 |
|
d070a7
|
263 |
;; ;; org |
C |
264 |
;; (use-package org |
|
265 |
;; :ensure t |
|
266 |
;; :config |
|
267 |
;; (setq org-src-tab-acts-natively t)) |
c655ee
|
268 |
|
d070a7
|
269 |
;; ;; tex/AUCTex |
C |
270 |
;; (use-package tex |
|
271 |
;; :ensure auctex |
|
272 |
;; :config |
|
273 |
;; (setq TeX-auto-save t) |
|
274 |
;; (setq TeX-parse-self t) |
|
275 |
;; (setq doc-view-ghostscript-program "c:/msys64/mingw64/bin/gswin32c.exe") |
|
276 |
;; (setq preview-gs-command "c:/msys64/mingw64/bin/gs.exe")) |
707431
|
277 |
|
d070a7
|
278 |
;; ;; latex-preview-pane |
C |
279 |
;; (use-package latex-preview-pane |
|
280 |
;; :ensure t |
|
281 |
;; :config |
|
282 |
;; (latex-preview-pane-enable)) |
8f6f27
|
283 |
|
d070a7
|
284 |
;; ;; plantuml |
C |
285 |
;; (use-package plantuml-mode |
|
286 |
;; :ensure t |
|
287 |
;; :init |
|
288 |
;; (setq plantuml-jar-path "c:/ProgramData/chocolatey/lib/plantuml/tools/plantuml.jar")) |
9c4cf0
|
289 |
|
d070a7
|
290 |
;; (use-package keyfreq |
C |
291 |
;; :ensure t |
|
292 |
;; :config |
|
293 |
;; (keyfreq-mode 1) |
|
294 |
;; (keyfreq-autosave-mode 1)) |
de1920
|
295 |
|
ffe3f5
|
296 |
(custom-set-variables |
C |
297 |
;; custom-set-variables was added by Custom. |
|
298 |
;; If you edit it by hand, you could mess it up, so be careful. |
|
299 |
;; Your init file should contain only one such instance. |
|
300 |
;; If there is more than one, they won't work right. |
de1920
|
301 |
'(ede-project-directories (quote ("c:/Users/joelg/.emacs.d"))) |
C |
302 |
'(package-selected-packages |
|
303 |
(quote |
d070a7
|
304 |
(diminish keyfreq zenburn-theme yasnippet x86-lookup workgroups2 which-key volatile-highlights use-package undo-tree srefactor smartparens racket-mode popwin plantuml-mode pdf-tools org-bullets org nyan-mode magit latex-preview-pane helm-projectile ggtags flycheck-pos-tip flycheck-clang-analyzer company-math company-c-headers clean-aindent-mode auto-package-update auctex)))) |
ffe3f5
|
305 |
(custom-set-faces |
C |
306 |
;; custom-set-faces was added by Custom. |
|
307 |
;; If you edit it by hand, you could mess it up, so be careful. |
|
308 |
;; Your init file should contain only one such instance. |
|
309 |
;; If there is more than one, they won't work right. |
|
310 |
) |