-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
255 lines (202 loc) · 6.86 KB
/
init.el
File metadata and controls
255 lines (202 loc) · 6.86 KB
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Author: Anton Strilchuk <anton@env.sh> ;;;
;;; URL: http://ype.env.sh ;;;
;;; Created: 16-06-2014 ;;;
;;; Last-Updated: 02-04-2015 ;;;
;;; Update #: 199 ;;;
;;; By: Anton Strilchuk <anton@env.sh> ;;;
;;; ;;;
;;; Filename: init ;;;
;;; Version: 0.1.1.1 ;;;
;;; Description: ype'S emacs conf ;;;
;;; ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(let ((minver 24))
(unless (>= emacs-major-version minver)
(error "UPDATE TIME! This Emacs requires v%s or higher" minver)))
(defconst *is-a-mac* (eq system-type 'darwin))
(defconst *is-x-toolkit* (eq window-system 'x))
(defconst *is-ns-toolkit* (eq window-system 'ns))
(add-to-list 'load-path (expand-file-name "init" user-emacs-directory))
(add-to-list 'load-path (expand-file-name "init-tools" user-emacs-directory))
(require 'init-git-submodules)
;; Measure startup time
(require 'init-benchmarking)
;; ---------------- ;;
;; Bootstrap Config ;;
;; ---------------- ;;
;;(require 'init-compat)
(require 'init-utils)
;;(require 'oVr-mode)
(require 'init-prefix-keys)
;; Package.el
(require 'init-elpa)
;; Add function for requiring git submodules
(require-package 'el-get)
(setq el-get-notify 'growl)
;; Paradox Package Rankings from GitHub
;;(require 'init-paradox-github)
;; $PATH
(require 'init-exec-path)
;; wgrep needed for init-edit-utils
(require-package 'wgrep)
(require-package 'project-local-variables)
(require-package 'diminish)
(require-package 'scratch)
(require-package 'mwe-log-commands)
(setq temporary-file-directory (expand-file-name "backup" user-emacs-directory))
;;Buffer Backups (files in ~/.emacs.d/backup)
(setq backup-directory-alist '(("." . "~/.emacs.d/backup"))
backup-by-copying t ; Don't delink hardlinks
version-control t ; Use version numbers on backups
delete-old-versions t ; Automatically delete excess backups
kept-new-versions 20 ; how many of the newest versions to keep
kept-old-versions 5 ; and how many of the old
)
(setq user-mail-address "anton@env.sh"
user-full-name "Anton Strilchuk")
;;(require 'init-keys) ; Keys and Passwords, do not include in public git
(require 'init-frame-hooks)
(require 'init-xterm)
(require-package 'fold-dwim)
(require-package 'dash)
;;Appearance Setup
(require 'init-theme)
(require 'init-gui-frames)
(require 'init-appearance)
(when *is-a-mac*
(require 'init-font))
;;Customizations
(add-to-list 'load-path (expand-file-name "custom" user-emacs-directory))
;;(el-get-bundle 'emacsmirror/terminal-notifier)
;;(add-to-list 'load-path (expand-file-name "init-tools/notify.el" user-emacs-directory))
;;(require 'notify)
;;Search Modes
(require 'init-search)
(require 'init-ido)
(require 'init-company)
(require 'init-sauron)
(require 'init-windows)
(require 'init-sessions)
(require 'init-edit-utils)
(require 'init-helpers)
(require 'init-paredit)
(require 'init-flycheck)
(el-get-bundle 'rferraz/ack-and-a-half)
;; Org-Sync
(el-get-bundle daimrod/org-sync)
(require 'os)
;;Git
(require 'init-git)
;; Tramp SSH
(require 'init-tramp)
;; Code Modes
(require 'init-javascript)
(require 'init-lisp)
(require 'init-slime)
;;(require 'init-common-lisp)
;;(require 'init-clojure)
;;(require 'init-literate-clojure)
(require 'init-python)
;;(require 'init-go)
;;(require 'init-ruby)
;;(require 'init-oascript)
;;Custom Functions
;;(require 'init-random-defuns)
;;Jump to Page
(require 'init-webjump)
;;HELM
(require 'init-helm)
(require 'init-eshell)
;;Auto Header
(require 'header2)
(require 'init-headers)
;;Clean up modeline
;;(load "clean-modeline")
;;Markdown mode
(require 'init-markdown)
;;The Big Giant Org
(require 'init-org)
(require 'init-org-publish)
(require 'init-proj-manage)
(when (executable-find "google")
(require 'init-gcal))
;; R in Emacs
(require 'init-ess)
;;LATEX
(require 'init-latex)
;;MU4E
;;(require 'init-contacts)
;;(require 'init-mu4e)
;;Dash
(require 'init-dash)
;; Finances
(require 'init-ledger)
;;Custom Keybindings
(require 'init-keybindings)
;;,---------------------
;;| MISC
;;| miscellaneous stuff
;;`---------------------
;; Writing
(require 'init-deft)
(require 'init-writing)
(require 'init-atlassian)
;; Web
(require 'init-web)
;; Health
(require 'init-rsi)
;; News and Reading
(require 'init-feeds)
;; Slack
(require 'init-hipchat)
(require-package 'gnuplot)
(when *is-a-mac*
(require-package 'osx-location))
(require-package 'regex-tool)
(setq initial-scratch-message
(concat ";; Happy hacking " (or user-login-name "") "!\n\n"))
;;--------------------------------------------------------------------
;; Byte compile every .el file into a .elc file in the
;; given directory. Must go after all init-* require.
;; Source: http://ubuntuforums.org/archive/index.php/t-183638.html
;;--------------------------------------------------------------------
(defun lw:byte-compile-directory(directory)
(interactive
(list
(read-file-name "Lisp directory: ")))
(byte-recompile-directory directory 0 t))
;;----------------------------------------------------------------------------
;; Allow access from emacsclient
;;----------------------------------------------------------------------------
(require 'server)
(unless (server-running-p)
(server-start))
;;----------------------------------------------------------------------------
;; variables configured via the interactive 'customize' interface
;;----------------------------------------------------------------------------
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(when (file-exists-p custom-file)
(load custom-file))
;; Update info docs
(add-hook 'Info-mode-hook ; After Info-mode has started
(lambda ()
(setq Info-additional-directory-list Info-default-directory-list)))
(sauron-start)
(require 'init-locales)
(add-hook 'after-init-hook
(lambda ()
(message "init completed in %.2fms"
(sanityinc/time-subtract-millis after-init-time before-init-time))))
;; Clock in default task (Daily Dose)
;; Jump: [[file:init/init-org.el::%3B%3B|%20DEFAULT%20TASK%20IDs][Default task ID function]]
;;(ype/clock-in-default-task-as-default)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; init.el ends here
;; Local Variables:
;; coding: utf-8
;; no-byte-compile: t
;; End:
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(put 'dired-find-alternate-file 'disabled nil)