-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
168 lines (147 loc) · 6.35 KB
/
.emacs
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
; Darrin's Emacs Config File
; Created: January 8 2013
; Edited : April 11 2016
; Open two windows side-by side on startup
(split-window-horizontally)
;wc-mode
(add-to-list 'load-path "/Users/darrin/.emacs.d/elpa/wc-mode-1.3")
(require 'wc-mode)
(global-set-key "\C-cw" 'wc-mode)
;load this before opening the org files
;figured out how to do this here: http://orgmode.org/manual/Clean-view.html
(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.
'(org-hide ((t (:foreground "color-234")))))
; Setup variables on how to start org mode
(setq org-startup-folded t)
(setq org-startup-indented t)
(setq org-hide-leading-stars t)
;(setq org-log-done 'time)
;(setq org-log-done 'note)
;(setq org-log-into-drawer nil)
(setq org-ellipsis "⤵")
;(setq org-todo-keywords
; '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" "CANCELED(c@)")))
;setup markdown mode
(autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
; Numbers
(global-linum-mode t)
(setq linum-format "%4d ") ; \u502 is the bar
; Get evil mode working
(package-initialize)
(setq evil-want-C-i-jump nil)
(evil-mode 1)
;Get evil-org mode working
(require 'evil-org)
;open the org-mode todo list
(find-file "/Users/darrin/git/Grad_Writing/org_planner/201603_todo.org")
(other-window 1)
(switch-to-buffer "201603_todo.org")
(other-window 1)
;Tabs and Indentation
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
;Marmalade + Melpa
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
;Menu Bar
(menu-bar-mode -1)
; Set Global Indents
(setq perl-indent-level 4)
(setq python-indent-level 4)
(setq indent-tabs-mode nil)
; highlight lines lones than 80 chars
(require 'whitespace)
(setq whitespace-style '(face empty tabs lines-tail trailing))
(global-whitespace-mode t)
(setq truncate-lines t)
(setq truncate-partial-width-windows t)
; Set up line/column mode
(setq line-number-mode t)
(setq column-number-mode t)
; stop tramp from autosaving back to server
; it can often crash emacs!
(setq tramp-auto-save-directory "/tmp")
;; key bindings
(when (eq system-type 'darwin) ;; mac specific settings
(setq mac-option-modifier 'alt)
(setq mac-command-modifier 'meta)
(global-set-key [kp-delete] 'delete-char) ;; sets fn-delete to be right-delete
(setq mac-option-modifier 'control)
(setq set-keyboard-coding-system nil)
)
; Stop emacs from adding tabs when pasting from terminal in OS X
; http://stackoverflow.com/questions/27736107/
(electric-indent-mode 0)
;TeX mode
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq TeX-save-query nil)
;(setq TeX-PDF-mode t)
(add-hook 'org-mode-hook
(lambda()
(flyspell-mode 1)))
(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.
'(ansi-color-names-vector
["#FFFFFF" "#d15120" "#5f9411" "#d2ad00" "#6b82a7" "#a66bab" "#6b82a7" "#505050"])
'(ansi-term-color-vector
[unspecified "#FFFFFF" "#d15120" "#5f9411" "#d2ad00" "#6b82a7" "#a66bab" "#6b82a7" "#505050"])
'(custom-enabled-themes (quote (zen-and-art)))
'(custom-safe-themes
(quote
("11636897679ca534f0dec6f5e3cb12f28bf217a527755f6b9e744bd240ed47e1" "5cb805901c33a175f7505c8a8b83c43c39fb84fbae4e14cfb4d1a6c83dabbfba" "085b401decc10018d8ed2572f65c5ba96864486062c0a2391372223294f89460" "27470eddcaeb3507eca2760710cc7c43f1b53854372592a3afa008268bcf7a75" "f38dd27d6462c0dac285aa95ae28aeb7df7e545f8930688c18960aeaf4e807ed" "6cfe5b2f818c7b52723f3e121d1157cf9d95ed8923dbc1b47f392da80ef7495d" "fca8ce385e5424064320d2790297f735ecfde494674193b061b9ac371526d059" "159bb8f86836ea30261ece64ac695dc490e871d57107016c09f286146f0dae64" "c56fd34f8f404e6e9e6f226c6ce2d170595acc001741644d22b49e457e3cd497" "6615e5aefae7d222a0c252c81aac52c4efb2218d35dfbb93c023c4b94d3fa0db" "27b53b2085c977a8919f25a3a76e013ef443362d887d52eaa7121e6f92434972" "967c58175840fcea30b56f2a5a326b232d4939393bed59339d21e46cf4798ecf" "6bc195f4f8f9cf1a4b1946a12e33de2b156ce44e384fbc54f1bae5b81e3f5496" "8281168b824a806489ca7d22e60bb15020bf6eecd64c25088c85b3fd806fc341" "2611d548a133727b1a956c4fa262935e993662a0aaa25d9532b04ab8f556a25b" "9eb87246fbfc73fd1355a13c8cb76fdb993f47de39113c0d45a9e918cc287b72" "5e1d1564b6a2435a2054aa345e81c89539a72c4cad8536cfe02583e0b7d5e2fa" "71b172ea4aad108801421cc5251edb6c792f3adbaecfa1c52e94e3d99634dee7" "21d9280256d9d3cf79cbcf62c3e7f3f243209e6251b215aede5026e0c5ad853f" "d2622a2a2966905a5237b54f35996ca6fda2f79a9253d44793cfe31079e3c92b" "501caa208affa1145ccbb4b74b6cd66c3091e41c5bb66c677feda9def5eab19c" "72cc9ae08503b8e977801c6d6ec17043b55313cda34bcf0e6921f2f04cf2da56" "30fe7e72186c728bd7c3e1b8d67bc10b846119c45a0f35c972ed427c45bacc19" "71efabb175ea1cf5c9768f10dad62bb2606f41d110152f4ace675325d28df8bd" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" default)))
'(fci-rule-character-color "#d9d9d9")
'(fci-rule-color "#d9d9d9")
'(highlight-changes-colors (quote ("#d33682" "#6c71c4")))
'(highlight-tail-colors
(quote
(("#F2F2F2" . 0)
("#B4C342" . 20)
("#69CABF" . 30)
("#6DA8D2" . 50)
("#DEB542" . 60)
("#F2804F" . 70)
("#F771AC" . 85)
("#F2F2F2" . 100))))
'(nrepl-message-colors
(quote
("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3")))
'(ns-right-command-modifier (quote meta))
'(vc-annotate-background "#2B2B2B")
'(vc-annotate-color-map
(quote
((20 . "#BC8383")
(40 . "#CC9393")
(60 . "#DFAF8F")
(80 . "#D0BF8F")
(100 . "#E0CF9F")
(120 . "#F0DFAF")
(140 . "#5F7F5F")
(160 . "#7F9F7F")
(180 . "#8FB28F")
(200 . "#9FC59F")
(220 . "#AFD8AF")
(240 . "#BFEBBF")
(260 . "#93E0E3")
(280 . "#6CA0A3")
(300 . "#7CB8BB")
(320 . "#8CD0D3")
(340 . "#94BFF3")
(360 . "#DC8CC3"))))
'(vc-annotate-very-old-color "#DC8CC3"))