-
Notifications
You must be signed in to change notification settings - Fork 16
/
.emacs
130 lines (111 loc) · 3.83 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
(setq-default
tab-always-indent 'complete
indent-tabs-mode nil
tab-width 4
default-tab-width 4
tab-stop-list (quote (4 8))
standard-indent 4
tab-indent-level 4
;; A global option would be phenomenal.
c-basic-indent 4
c-basic-offset 4
c-indent-level 4
cperl-indent-level 4
cpython-indent-level 4
css-indent-level 4
css-indent-offset 4
ess-indent-level 4
html-basic-offset 4
html-tab-width 4
java-basic-offset 4
java-tab-width 4
jde-basic-offset 4
jde-tab-width 4
js-indent-level 4
lisp-indent-offset 4
lua-indent-level 4
perl-indent-level 4
py-indent-offset 4
python-indent-offset 4
r-indent-level 4
sgml-basic-offset 4
sgml-indent-level 4
sh-basic-offset 4
sh-tab-width 4
xml-basic-offset 4
xml-tab-width 4
;; This disables all the temp file writing
;; that Emacs does, but it can break
;; some syncing apps and/or cause
;; file loss. :^(
;; backup-directory-alist
;; `((".*" . ,temporary-file-directory))
;; auto-save-file-name-transforms
;; `((".*" ,temporary-file-directory t))
;; Highlight code blocks in Org mode.
org-src-fontify-natively t
line-spacing 2
;; Ido settings:
ido-enable-flex-matching t
ido-everywhere t
)
;; Enable ido.
;; https://masteringemacs.org/article/introduction-to-ido-mode
(ido-mode 1)
;; Start somewhere sane, rather
;; than the directory where
;; emacs lives. This seems
;; incompatible with
;; setq-default.
(setq default-directory "~/code")
;; Disable the toolbar.
(if window-system
(tool-bar-mode -1))
;; Show matching parens.
(show-paren-mode 1)
;; Automatially indent on newlines and such.
(electric-indent-mode 1)
;; No line numbers, as they take
;; away from the immersion and
;; can occasionally hurt
;; performance.
(global-linum-mode 0)
;; Increase the default font size.
(set-face-attribute 'default nil :height 135)
(custom-set-variables
'(inhibit-startup-screen t)
)
;; Jon Blow's Emacs color scheme:
;; https://www.twitch.tv/naysayer88/clip/SpoopyEphemeralClipzTriHard
;; https://pastebin.com/5tTEjWjL
(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.
'(default ((t (:foreground "#d3b58d" :background "#041818"))))
'(custom-group-tag-face ((t (:underline t :foreground "lightblue"))) t)
'(custom-variable-tag-face ((t (:underline t :foreground "lightblue"))) t)
'(font-lock-builtin-face ((t nil)))
; '(font-lock-comment-face ((t (:foreground "yellow"))))
'(font-lock-comment-face ((t (:foreground "#3fdflf"))))
'(font-lock-function-name-face ((((class color) (background dark)) (:foreground "white"))))
'(font-lock-keyword-face ((t (:foreground "white" ))))
; '(font-lock-string-face ((t (:foreground "gray160" :background "gray16"))))
'(font-lock-string-face ((t (:foreground "#0fdfaf"))))
'(font-lock-variable-name-face ((((class color) (background dark)) (:foreground "#c8d4ec"))))
; '(font-lock-warning-face ((t (:foreground "#695a46"))))
'(font-lock-warning-face ((t (:foreground "#504038"))))
'(highlight ((t (:foreground "navyblue" :background "darkseagreen2"))))
'(mode-line ((t (:inverse-video t))))
'(region ((t (:background "blue"))))
'(widget-field-face ((t (:foreground "white"))) t)
'(widget-single-line-field-face ((t (:background "darkgray"))) t)
)
(global-font-lock-mode 1)
(set-cursor-color "lightgreen")
(set-background-color "#072626")
;;(global-set-key [C-return] 'save-buffer)
;;(set-face-attribute 'default nil :font "Anonymous Pro-14")
;;(set-face-attribute 'default nil :font "Consolas-174")
(set-face-foreground 'font-lock-builtin-face "lightgreen")