dot-emacs-dot-d
Check-in [b8ffc56a19]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make indentation better.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:b8ffc56a193533b3c8548231c116f8ef55d0eb526f85b7620d006f992ef36e91
User & Date: jaccarmac 2018-03-13 00:38:04
Context
2018-03-13
00:43
Set up pdf-tools. check-in: 129685da77 user: jaccarmac tags: trunk
00:38
Make indentation better. check-in: b8ffc56a19 user: jaccarmac tags: trunk
00:36
Byte-compile more cleanly, add PDF tools. check-in: a6a1bf7a25 user: jaccarmac tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to init.el.

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
..
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
..
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
...
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
...
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
...
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
...
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
(use-package saveplace :init
  (when (fboundp 'save-place-mode) (save-place-mode)))

(ido-everywhere)
(setf ido-auto-merge-work-directories-length -1)

(quse-package ido-completing-read+
              :init
              (ido-ubiquitous-mode)
              (setf org-completion-use-ido t)
              (setf magit-completing-read-function 'magit-ido-completing-read))

(quse-package ido-yes-or-no :init (ido-yes-or-no-mode))

(quse-package crm-custom :init (crm-custom-mode))

(quse-package smex
              :init (smex-initialize)
              :bind (("M-x" . smex)
                     ("M-X" . smex-major-mode-commands)
                     ("C-c C-c M-x" . execute-extended-command)))

(setq-default fill-column 79)

(prefer-coding-system 'utf-8-unix)

(setq-default inhibit-splash-screen t)

................................................................................
(quse-package rainbow-delimiters)

(add-to-list 'default-frame-alist '(font . "Fantasque Sans Mono 11"))

(quse-package emojify :config (global-emojify-mode))

(quse-package smartparens
              :init
              (smartparens-global-mode)
              (smartparens-global-strict-mode)
              (require 'smartparens-config)
              (sp-use-smartparens-bindings))

(setf custom-file "~/.emacs.d/custom.el")

(defun upgrade-and-clean-packages ()
  (interactive)
  (quelpa-upgrade)
  (package-autoremove)
................................................................................

(quse-package (org :fetcher git
                   :url "https://code.orgmode.org/bzg/org-mode.git"
                   :files ("lisp/*.el"
                           "contrib/lisp/*.el"
                           "doc/dir"
                           "doc/*.texi"))
              :init
              (setq-default major-mode 'org-mode))

(quse-package ox-reveal)

(setf org-latex-pdf-process (list "latexmk -f -pdf %f"))

(add-to-list 'org-latex-classes
             '("apa6"
................................................................................
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
               ("\\paragraph{%s}" . "\\paragraph*{%s}")
               ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(quse-package ledger-mode
              :init (add-to-list 'auto-mode-alist
                                 '("ledger/.*\\.dat\\'" . ledger-mode)))

(quse-package password-store)

(quse-package projectile
              :init
              (projectile-global-mode)
              (setf projectile-switch-project-action 'projectile-dired)
              (setf projectile-indexing-method 'alien))

(quse-package magit)

(quse-package ssh-agency)

(quse-package editorconfig :config (editorconfig-mode 1))

(quse-package direx)

(quse-package auto-complete
              :init
              (require 'auto-complete-config)
              (ac-config-default))

(quse-package ac-capf)

(quse-package cider
              :init
              (setf cider-repl-tab-command 'indent-for-tab-command)
              (setf cider-default-repl-command "boot")
              (setf cider-repl-history-file "~/.cider-repl-history")
              (setf cider-repl-display-help-banner nil))

(quse-package ac-cider
              :init
              (add-hook 'cider-mode-hook 'ac-cider-setup)
              (add-hook 'cider-mode-hook 'ac-flyspell-workaround)
              (add-hook 'cider-repl-mode-hook 'ac-cider-setup)
              (add-hook 'cider-repl-mode-hook 'ac-flyspell-workaround)
              (add-hook 'cider-clojure-interaction-mode-hook 'ac-cider-setup)
              (add-hook 'cider-clojure-interaction-mode-hook 'ac-flyspell-workaround)
              (eval-after-load "auto-complete"
                '(progn
                   (add-to-list 'ac-modes 'cider-mode)
                   (add-to-list 'ac-modes 'cider-repl-mode)
                   (add-to-list 'ac-modes 'cider-clojure-interaction-mode))))

(quse-package slime
              :init
              (setf inferior-lisp-program "ros run")
              (setf common-lisp-hyperspec-root (getenv "HYPERSPEC_ROOT"))
              (setf slime-contribs '(slime-fancy))
              (slime-setup))

(quse-package ac-slime
              :init
              (add-hook 'slime-mode-hook 'set-up-slime-ac)
              (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
              (eval-after-load "auto-complete"
                '(add-to-list 'ac-modes 'slime-repl-mode)))

(quse-package web-mode
              :init
              (setf web-mode-enable-engine-detection t)
              (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
              (add-to-list 'org-src-lang-modes '("html" . web))
              (add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
              (add-to-list 'org-src-lang-modes '("css" . web))
              (add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode))
              (add-to-list 'auto-mode-alist '("\\.json\\'" . web-mode))
              (add-to-list 'org-src-lang-modes '("js" . web))
              (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode))
              (add-to-list 'auto-mode-alist '("\\.tmpl\\'" . web-mode))
              (add-to-list 'auto-mode-alist '("\\.jsx\\'" . web-mode)))

(quse-package tern
              :config
              (setf tern-command '("tern"))
              (add-hook 'web-mode-hook 'tern-mode)
              (add-to-list 'auto-mode-alist '(".tern-project" . web-mode))
              (add-to-list 'web-mode-content-types '("json" . ".tern-project")))
(quse-package tern-auto-complete :config (tern-ac-setup))

(quse-package coffee-mode)

;; (quelpa 'eclim)
;; (add-to-list 'package-selected-packages 'eclim)
;; (use-package eclim :config (global-eclim-mode))
;; (use-package eclimd :config (setf eclimd-wait-for-process nil))
;; (quse-package ac-emacs-eclim :config (ac-emacs-eclim-config))

(quse-package yasnippet)

(quse-package nim-mode
              :init
              (add-hook 'nim-mode-hook 'nimsuggest-mode)
              (add-hook 'nim-mode-hook 'ac-capf-setup))

(quse-package markdown-mode)

(quse-package go-mode
              :init
              (when (executable-find "goimports")
                (setf gofmt-command "goimports"))
              (add-hook 'before-save-hook #'gofmt-before-save)
              :bind (:map go-mode-map
                          ("M-." . godef-jump)))

(quse-package go-autocomplete)

(quse-package go-guru)

(quse-package (protobuf-mode :fetcher github
                             :repo "google/protobuf"
................................................................................
(quse-package yaml-mode)

(let ((global-venv-location "~/.virtualenvs"))
  (setf python-environment-directory global-venv-location)
  (setf venv-location global-venv-location))

(quse-package jedi
              :init
              (add-hook 'python-mode-hook 'jedi:setup)
              (setf jedi:complete-on-dot t)
              (setf jedi:use-shortcuts t))

(quse-package virtualenvwrapper
              :init
              (venv-initialize-interactive-shells)
              (venv-initialize-eshell))

(quse-package (hoon-mode :fetcher github
                         :repo "urbit/urbit"
                         :files ("extras/hoon-mode.el/hoon-mode.el")))

(quse-package (gdscript-mode :fetcher github
                             :repo "jaccarmac/gdscript-mode"
................................................................................
(quse-package docker :init (docker-global-mode))
(quse-package docker-tramp)

(quse-package csharp-mode)

(quse-package request-deferred)
(quse-package omnisharp
              :config
              (add-hook 'csharp-mode-hook 'omnisharp-mode))

(quse-package lua-mode)

(quse-package edit-server
              :init (setf edit-server-new-frame nil)
              :config (edit-server-start))

(quse-package erlang)

(quse-package rust-mode
              :init (setf rust-format-on-save t))

(quse-package cargo :init (add-hook 'rust-mode-hook 'cargo-minor-mode))

(quse-package toml-mode)

(quse-package mediawiki)

(quse-package (xelb :fetcher github :repo "ch11ng/xelb"))
(quse-package (exwm :fetcher github :repo "ch11ng/exwm")
              :config
              (require 'exwm-config)
              (exwm-config-default))

(quse-package erc-twitch
              :config
              (erc-twitch-enable))

(use-package zone
  :init
  (defun lock-screen () ; TODO: pick a random function, show it, zone on that
    "Lock screen using (zone) and xtrlock
 calls M-x zone on all frames and runs xtrlock"
    (interactive)
................................................................................
  :commands (zone-leave-me-alone zone-when-idle))

(quse-package mingus)

(quse-package elm-mode :init (setf elm-format-on-save t))

(quse-package intero
              :init
              (add-hook 'haskell-mode-hook 'intero-mode)
              (setf haskell-stylish-on-save t))

(quse-package fsharp-mode)

(quse-package pdf-tools)

(customize-save-variable 'package-selected-packages package-selected-packages)







|
|
|
|






|
|
|
|







 







|
|
|
|
|







 







|
|







 







|
|




|
|
|
|










|
|
|




|
|
|
|
|


|
|
|
|
|
|
|
|
|
|
|
|


|
|
|
|
|


|
|
|
|
|


|
|
|
|
|
|
|
|
|
|
|
|


|
|
|
|
|













|
|
|




|
|
|
|
|
|







 







|
|
|
|


|
|
|







 







|
|




|
|




|









|
|
|


|
|







 







|
|
|






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
..
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
..
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
...
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
...
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
...
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
...
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
(use-package saveplace :init
  (when (fboundp 'save-place-mode) (save-place-mode)))

(ido-everywhere)
(setf ido-auto-merge-work-directories-length -1)

(quse-package ido-completing-read+
  :init
  (ido-ubiquitous-mode)
  (setf org-completion-use-ido t)
  (setf magit-completing-read-function 'magit-ido-completing-read))

(quse-package ido-yes-or-no :init (ido-yes-or-no-mode))

(quse-package crm-custom :init (crm-custom-mode))

(quse-package smex
  :init (smex-initialize)
  :bind (("M-x" . smex)
         ("M-X" . smex-major-mode-commands)
         ("C-c C-c M-x" . execute-extended-command)))

(setq-default fill-column 79)

(prefer-coding-system 'utf-8-unix)

(setq-default inhibit-splash-screen t)

................................................................................
(quse-package rainbow-delimiters)

(add-to-list 'default-frame-alist '(font . "Fantasque Sans Mono 11"))

(quse-package emojify :config (global-emojify-mode))

(quse-package smartparens
  :init
  (smartparens-global-mode)
  (smartparens-global-strict-mode)
  (require 'smartparens-config)
  (sp-use-smartparens-bindings))

(setf custom-file "~/.emacs.d/custom.el")

(defun upgrade-and-clean-packages ()
  (interactive)
  (quelpa-upgrade)
  (package-autoremove)
................................................................................

(quse-package (org :fetcher git
                   :url "https://code.orgmode.org/bzg/org-mode.git"
                   :files ("lisp/*.el"
                           "contrib/lisp/*.el"
                           "doc/dir"
                           "doc/*.texi"))
  :init
  (setq-default major-mode 'org-mode))

(quse-package ox-reveal)

(setf org-latex-pdf-process (list "latexmk -f -pdf %f"))

(add-to-list 'org-latex-classes
             '("apa6"
................................................................................
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
               ("\\paragraph{%s}" . "\\paragraph*{%s}")
               ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(quse-package ledger-mode
  :init (add-to-list 'auto-mode-alist
                     '("ledger/.*\\.dat\\'" . ledger-mode)))

(quse-package password-store)

(quse-package projectile
  :init
  (projectile-global-mode)
  (setf projectile-switch-project-action 'projectile-dired)
  (setf projectile-indexing-method 'alien))

(quse-package magit)

(quse-package ssh-agency)

(quse-package editorconfig :config (editorconfig-mode 1))

(quse-package direx)

(quse-package auto-complete
  :init
  (require 'auto-complete-config)
  (ac-config-default))

(quse-package ac-capf)

(quse-package cider
  :init
  (setf cider-repl-tab-command 'indent-for-tab-command)
  (setf cider-default-repl-command "boot")
  (setf cider-repl-history-file "~/.cider-repl-history")
  (setf cider-repl-display-help-banner nil))

(quse-package ac-cider
  :init
  (add-hook 'cider-mode-hook 'ac-cider-setup)
  (add-hook 'cider-mode-hook 'ac-flyspell-workaround)
  (add-hook 'cider-repl-mode-hook 'ac-cider-setup)
  (add-hook 'cider-repl-mode-hook 'ac-flyspell-workaround)
  (add-hook 'cider-clojure-interaction-mode-hook 'ac-cider-setup)
  (add-hook 'cider-clojure-interaction-mode-hook 'ac-flyspell-workaround)
  (eval-after-load "auto-complete"
    '(progn
       (add-to-list 'ac-modes 'cider-mode)
       (add-to-list 'ac-modes 'cider-repl-mode)
       (add-to-list 'ac-modes 'cider-clojure-interaction-mode))))

(quse-package slime
  :init
  (setf inferior-lisp-program "ros run")
  (setf common-lisp-hyperspec-root (getenv "HYPERSPEC_ROOT"))
  (setf slime-contribs '(slime-fancy))
  (slime-setup))

(quse-package ac-slime
  :init
  (add-hook 'slime-mode-hook 'set-up-slime-ac)
  (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
  (eval-after-load "auto-complete"
    '(add-to-list 'ac-modes 'slime-repl-mode)))

(quse-package web-mode
  :init
  (setf web-mode-enable-engine-detection t)
  (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
  (add-to-list 'org-src-lang-modes '("html" . web))
  (add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
  (add-to-list 'org-src-lang-modes '("css" . web))
  (add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.json\\'" . web-mode))
  (add-to-list 'org-src-lang-modes '("js" . web))
  (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.tmpl\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.jsx\\'" . web-mode)))

(quse-package tern
  :config
  (setf tern-command '("tern"))
  (add-hook 'web-mode-hook 'tern-mode)
  (add-to-list 'auto-mode-alist '(".tern-project" . web-mode))
  (add-to-list 'web-mode-content-types '("json" . ".tern-project")))
(quse-package tern-auto-complete :config (tern-ac-setup))

(quse-package coffee-mode)

;; (quelpa 'eclim)
;; (add-to-list 'package-selected-packages 'eclim)
;; (use-package eclim :config (global-eclim-mode))
;; (use-package eclimd :config (setf eclimd-wait-for-process nil))
;; (quse-package ac-emacs-eclim :config (ac-emacs-eclim-config))

(quse-package yasnippet)

(quse-package nim-mode
  :init
  (add-hook 'nim-mode-hook 'nimsuggest-mode)
  (add-hook 'nim-mode-hook 'ac-capf-setup))

(quse-package markdown-mode)

(quse-package go-mode
  :init
  (when (executable-find "goimports")
    (setf gofmt-command "goimports"))
  (add-hook 'before-save-hook #'gofmt-before-save)
  :bind (:map go-mode-map
              ("M-." . godef-jump)))

(quse-package go-autocomplete)

(quse-package go-guru)

(quse-package (protobuf-mode :fetcher github
                             :repo "google/protobuf"
................................................................................
(quse-package yaml-mode)

(let ((global-venv-location "~/.virtualenvs"))
  (setf python-environment-directory global-venv-location)
  (setf venv-location global-venv-location))

(quse-package jedi
  :init
  (add-hook 'python-mode-hook 'jedi:setup)
  (setf jedi:complete-on-dot t)
  (setf jedi:use-shortcuts t))

(quse-package virtualenvwrapper
  :init
  (venv-initialize-interactive-shells)
  (venv-initialize-eshell))

(quse-package (hoon-mode :fetcher github
                         :repo "urbit/urbit"
                         :files ("extras/hoon-mode.el/hoon-mode.el")))

(quse-package (gdscript-mode :fetcher github
                             :repo "jaccarmac/gdscript-mode"
................................................................................
(quse-package docker :init (docker-global-mode))
(quse-package docker-tramp)

(quse-package csharp-mode)

(quse-package request-deferred)
(quse-package omnisharp
  :config
  (add-hook 'csharp-mode-hook 'omnisharp-mode))

(quse-package lua-mode)

(quse-package edit-server
  :init (setf edit-server-new-frame nil)
  :config (edit-server-start))

(quse-package erlang)

(quse-package rust-mode
  :init (setf rust-format-on-save t))

(quse-package cargo :init (add-hook 'rust-mode-hook 'cargo-minor-mode))

(quse-package toml-mode)

(quse-package mediawiki)

(quse-package (xelb :fetcher github :repo "ch11ng/xelb"))
(quse-package (exwm :fetcher github :repo "ch11ng/exwm")
  :config
  (require 'exwm-config)
  (exwm-config-default))

(quse-package erc-twitch
  :config
  (erc-twitch-enable))

(use-package zone
  :init
  (defun lock-screen () ; TODO: pick a random function, show it, zone on that
    "Lock screen using (zone) and xtrlock
 calls M-x zone on all frames and runs xtrlock"
    (interactive)
................................................................................
  :commands (zone-leave-me-alone zone-when-idle))

(quse-package mingus)

(quse-package elm-mode :init (setf elm-format-on-save t))

(quse-package intero
  :init
  (add-hook 'haskell-mode-hook 'intero-mode)
  (setf haskell-stylish-on-save t))

(quse-package fsharp-mode)

(quse-package pdf-tools)

(customize-save-variable 'package-selected-packages package-selected-packages)