-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
229 lines (207 loc) · 8.43 KB
/
init.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
;;;; init.el, mah emacs booting god of doom
;;
;;;;
;; system locations
;;
(package-initialize)
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name))
system-specific-config (concat dotfiles-dir system-name ".el")
user-specific-config (concat dotfiles-dir user-login-name ".el")
common-dir (concat dotfiles-dir "common")
themes-dir (concat dotfiles-dir "themes"))
(if (file-exists-p "/usr/local/bin")
(setq local-bin "/usr/local/bin"))
;;;;
;; build load/exec-path
;;
(add-to-list 'load-path common-dir)
(add-to-list 'load-path themes-dir)
;;;;
;; build exec-path
;;
(if (boundp 'local-bin)
(add-to-list 'exec-path local-bin))
(if (boundp 'mysql-bin)
(add-to-list 'exec-path mysql-bin))
(if (boundp 'erlang-bin)
(add-to-list 'exec-path erlang-bin))
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize)
(exec-path-from-shell-copy-env "GOPATH"))
;;;;
;; static loads
;;
(require 'lisp-helpers)
(require 'defuns)
(require 'bindings)
(require 'lisp-env)
(require 'scheme-env)
(require 'org-env)
(require 'js-env)
(require 'rust-env)
(add-hook 'after-init-hook
#'(lambda ()
(require 'helm-env)
(require 'ruby-env)
;; save places in buffers between sessions
(require 'saveplace)
;; override default format of unique buffer names
(require 'uniquify)
;; transform ansi codes into faces
(require 'ansi-color)
;; keep a list of recently opened files across sessions
(require 'recentf)))
;;;;
;; user/system specific
;;
(if (file-exists-p system-specific-config)
(load system-specific-config))
(if (file-exists-p user-specific-config)
(load user-specific-config))
;;;;
;; customize settings
;;
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(auto-save-default nil)
'(blink-cursor-mode t)
'(cider-prompt-for-project-on-connect 'when-needed)
'(cider-repl-history-file "~/.emacs.d/cider-history" t)
'(cider-repl-history-size 3000 t)
'(cider-repl-result-prefix ";; => " t)
'(cider-repl-use-pretty-printing t t)
'(cider-repl-wrap-history t t)
'(cider-show-error-buffer nil t)
'(coffee-tab-width 2)
'(column-number-mode t)
'(dired-at-point-require-prefix nil)
'(erc-autojoin-mode t)
'(erc-button-mode t)
'(erc-email-userid "justin")
'(erc-fill-mode t)
'(erc-header-line-face-method nil)
'(erc-hide-prompt t)
'(erc-input-line-position -1)
'(erc-irccontrols-mode t)
'(erc-join-buffer 'bury)
'(erc-kill-buffer-on-part t)
'(erc-kill-queries-on-quit t)
'(erc-kill-server-buffer-on-quit t)
'(erc-list-mode t)
'(erc-match-mode t)
'(erc-menu-mode t)
'(erc-move-to-prompt-mode t)
'(erc-netsplit-mode t)
'(erc-networks-mode t)
'(erc-nick "cheapRoc")
'(erc-noncommands-mode t)
'(erc-pcomplete-mode t)
'(erc-prompt ">")
'(erc-readonly-mode t)
'(erc-ring-mode t)
'(erc-stamp-mode t)
'(erc-track-minor-mode t)
'(erc-track-mode t)
'(erc-user-full-name "Justin Reagor")
'(eshell-kill-on-exit t)
'(eshell-scroll-to-bottom-on-input nil)
'(eshell-term-name "screen-256color")
'(eshell-visual-commands
'("tail" "ssh" "vi" "screen" "top" "less" "more" "lynx" "ncftp" "pine" "tin" "trn" "elm"))
'(ffap-dired-wildcards "[*?][^/]*\\'")
'(file-name-at-point-functions nil)
'(fringe-mode 0 nil (fringe))
'(go-eldoc-gocode-args nil)
'(godef-command "godef")
'(helm-autoresize-max-height 20)
'(helm-autoresize-mode t)
'(helm-mode t)
'(ido-create-new-buffer 'always)
'(ido-enable-flex-matching t)
'(ido-max-prospects 10)
'(ido-mode 'both nil (ido))
'(ido-use-filename-at-point nil)
'(indent-tabs-mode nil)
'(js-indent-level 2)
'(js2-missing-semi-one-line-override t)
'(js2-strict-missing-semi-warning nil)
'(jsx-indent-level 2)
'(line-spacing 1)
'(longlines-auto-wrap nil)
'(markdown-bold-underscore t)
'(markdown-command "")
'(ns-alternate-modifier 'meta)
'(ns-antialias-text t)
'(ns-command-modifier 'super)
'(ns-control-modifier 'control)
'(ns-function-modifier 'none)
'(ns-use-qd-smoothing nil)
'(org-priority-faces nil)
'(package-selected-packages
'(eglot project xref go-eldoc go-autocomplete cl-lib helm-lsp go-playground virtualenvwrapper elpy sqlup-mode company-go popup-complete auto-complete exec-path-from-shell go-errcheck go-imports go-scratch racer cargo rust-playground go-stacktracer markdown-mode protobuf-mode terraform-mode systemd yard-mode yaml-mode ws-trim toml-mode toml rustfmt ruby-electric ruby-compilation restclient-helm rainbow-mode projectile-direnv paredit osx-location osx-browse org-projectile nix-mode nginx-mode minitest httprepl helm-projectile helm-proc helm-package helm-descbinds helm-ag handlebars-mode haml-mode es-mode eredis erc-terminal-notifier erc-hl-nicks enh-ruby-mode elixir-mode elixir-mix editorconfig dockerfile-mode company-racer color-theme-solarized color-theme-monokai color-theme-molokai cider chruby arduino-mode ag ack-and-a-half))
'(rust-format-on-save t)
'(rust-indent-offset 4)
'(safe-local-variable-values '((encoding . utf-8)))
'(sh-basic-offset 4)
'(sh-indentation 4)
'(show-paren-mode t)
'(size-indication-mode t)
'(speedbar-vc-do-check nil)
'(standard-indent 2)
'(tab-always-indent 'always)
'(tab-width 4)
'(terraform-indent-level 4)
'(truncate-lines nil)
'(truncate-partial-width-windows nil)
'(visible-cursor t)
'(yas/prompt-functions
'(yas/ido-prompt yas/completing-prompt yas/x-prompt yas/dropdown-prompt yas/no-prompt)))
(provide 'init)
;;; init.el eof
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(bg:erc-color-face5 ((t (:background "red"))))
'(diff-added ((t (:foreground "#5fd787"))))
'(diff-changed ((t (:foreground "#990000"))))
'(diff-context ((t (:inherit diff-mode :foreground "#666666"))))
'(diff-file-header ((t (:inherit diff-header :foreground "#ffffff"))))
'(diff-function ((t (:inherit diff-header :background "#000000" :foreground "#bbbbbb"))))
'(diff-header ((t (:background "#222222" :foreground "#cccccc"))))
'(diff-hunk-header ((t (:inherit diff-header :foreground "#ffffff"))))
'(diff-index ((t (:background "#999999" :foreground "#000000"))))
'(diff-indicator-added ((t (:inherit diff-added))))
'(diff-indicator-changed ((t (:inherit diff-changed))))
'(diff-indicator-removed ((t (:inherit diff-removed))))
'(diff-mode ((t nil)))
'(diff-removed ((t (:foreground "#ee0000"))))
'(erc-input-face ((t (:foreground "color-250"))))
'(erc-my-nick-face ((t (:foreground "color-33" :weight bold))))
'(font-lock-comment-delimiter-face ((t (:foreground "#404040"))))
'(font-lock-comment-face ((t (:foreground "#404040"))))
'(linum ((t (:inherit (shadow default)))))
'(markdown-inline-code-face ((t (:inherit markdown-pre-face font-lock-constant-face nil))))
'(mode-line-inactive ((t (:inherit mode-line :background "grey40" :foreground "grey20" :box (:line-width -1 :color "grey40") :weight light))))
'(org-document-title ((t (:foreground "brightcyan" :background "black" :weight bold))))
'(rainbow-delimiters-depth-1-face ((((background dark)) (:foreground "#a145dc"))))
'(rainbow-delimiters-depth-2-face ((((background dark)) (:foreground "#5445dc"))))
'(rainbow-delimiters-depth-3-face ((((background dark)) (:foreground "#458adc"))))
'(rainbow-delimiters-depth-4-face ((((background dark)) (:foreground "#45cedc"))))
'(rainbow-delimiters-depth-5-face ((((background dark)) (:foreground "#53de46"))))
'(rainbow-delimiters-depth-6-face ((((background dark)) (:foreground "#ccf04b"))))
'(rainbow-delimiters-depth-7-face ((((background dark)) (:foreground "#ffd850"))))
'(rainbow-delimiters-depth-8-face ((((background dark)) (:foreground "#ff8e50"))))
'(rainbow-delimiters-depth-9-face ((((background dark)) (:foreground "#fb4f56"))))
'(region ((t (:background "#484848" :foreground "#eeeeee"))))
'(tool-bar ((t (:box (:line-width 1 :style released-button)))))
'(trailing-whitespace ((t nil)))
'(twitter-time-stamp-face ((t (:background "lightBlue" :foreground "Black" :slant italic))))
'(twitter-user-name-face ((t (:background "lightBlue" :foreground "black" :weight bold))))
'(vertical-border ((t (:foreground "gray25")))))
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)