-
Notifications
You must be signed in to change notification settings - Fork 9
/
nano-face-override.el
224 lines (219 loc) · 10.2 KB
/
nano-face-override.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
;;; nano-face-override.el -*- lexical-binding: t; -*-
; this is my way of customizing the faces used by nano.
; by default, nano's faces are too limiting in my opinion;
; syntax highlighting is much less effective when so many
; fields receive the same face attributes.
(after! flycheck
(set-face-attribute 'flycheck-error nil
:underline
'(:color "#9C2F18" :style wave ))
(set-face-attribute 'flycheck-warning nil
:underline
'(:color "#AB9D27" :style wave )))
(after! nano-faces
(set-face-attribute 'nano-face-critical nil
:foreground dn-critical
:background dn-background )
(set-face-attribute 'nano-face-tag-critical nil
:foreground dn-critical
:background dn-background ))
(set-face-attribute 'help-key-binding nil
:foreground dn-foreground
:background dn-background
:weight 'bold
:box nil )
(after! eros
(set-face-attribute 'eros-result-overlay-face nil
:foreground dn-foreground
:background dn-background
:weight 'bold
:box t ))
(after! avy
(set-face-attribute 'avy-lead-face nil
:foreground dn-foreground
:background dn-subtle
:underline t )
(set-face-attribute 'avy-lead-face-1 nil
:foreground dn-foreground
:background dn-subtle
:underline t )
(set-face-attribute 'avy-lead-face-0 nil
:foreground dn-foreground
:background dn-subtle
:underline t ))
(after! lsp-ui
(set-face-attribute 'lsp-ui-doc-url nil
:background dn-contrast
:inherit nil
:underline t )
(set-face-attribute 'lsp-ui-doc-background nil
:background dn-contrast
:inherit nil
:box t ))
(after! lsp-mode
(set-face-attribute 'lsp-signature-face nil
:background dn-contrast
:inherit nil )
(set-face-attribute 'lsp-face-highlight-read nil
:background dn-contrast
:underline nil
:inherit nil )
(set-face-attribute 'lsp-face-highlight-write nil
:background dn-contrast
:underline t
:inherit nil ))
(after! git-gutter-fringe
(set-face-attribute 'git-gutter-fr:added nil
:foreground dn-popout
:weight 'bold )
(set-face-attribute 'git-gutter:modified nil
:foreground dn-attention
:weight 'bold)
(set-face-attribute 'git-gutter-fr:modified nil
:foreground dn-attention
:weight 'bold))
(after! magit
(set-face-attribute 'magit-diff-hunk-heading-highlight nil
:background dn-medium
:box nil
:underline t )
(set-face-attribute 'magit-diff-hunk-heading nil
:background dn-medium )
(set-face-attribute 'magit-diff-context-highlight nil
:foreground dn-foreground
:background dn-background )
(set-face-attribute 'magit-diff-added-highlight nil
:foreground dn-popout
:background dn-background
:weight 'bold)
(set-face-attribute 'magit-diff-added nil
:foreground dn-popout
:background dn-background )
(set-face-attribute 'magit-diff-removed-highlight nil
:foreground dn-critical
:background dn-background
:weight 'bold )
(set-face-attribute 'magit-diff-removed nil
:foreground dn-critical
:background dn-background )
(set-face-attribute 'magit-hash nil
:foreground dn-grey
:weight 'bold)
(set-face-attribute 'magit-section-highlight nil
:background dn-contrast
:inherit nil ))
(after! info
(set-face-attribute 'info-xref-visited nil
:foreground dn-violet )
(set-face-attribute 'info-menu-star nil
:foreground dn-foreground ))
(after! popup
(set-face-attribute 'popup-tip-face nil
:background dn-contrast ))
(set-face-attribute 'link nil
:underline t )
(set-face-attribute 'button nil
:underline t )
(after! hl-line
(set-face-attribute 'hl-line nil :background dn-medium ))
(set-face-attribute 'cursor nil
:background dn-subtle )
(after! web-mode
(set-face-attribute 'web-mode-doctype-face nil
:foreground dn-faded )
(set-face-attribute 'web-mode-html-attr-name-face nil
:foreground dn-salient )
(set-face-attribute 'web-mode-html-tag-face nil
:foreground dn-violet ))
(after! company
(set-face-attribute 'company-tooltip-search nil
:background dn-medium )
(set-face-attribute 'company-tooltip-common nil
:background dn-medium )
;(set-face-attribute 'company-box-scrollbar nil
; :background dn-medium )
(set-face-attribute 'company-tooltip-annotation nil
:background dn-medium )
(set-face-attribute 'company-scrollbar-bg nil
:background dn-medium )
(set-face-attribute 'company-scrollbar-fg nil
:background dn-medium ))
(after! diredfl
(set-face-attribute 'diredfl-dir-heading nil
:foreground dn-faded
:background nil
:weight 'bold
:underline t )
(set-face-attribute 'diredfl-dir-name nil
:foreground dn-salient
:background nil )
(set-face-attribute 'diredfl-compressed-file-suffix nil
:foreground dn-salient
:background nil )
(set-face-attribute 'diredfl-file-name nil
:foreground dn-foreground )
(set-face-attribute 'diredfl-deletion nil
:foreground dn-critical
:background dn-background )
:weight 'bold
(set-face-attribute 'diredfl-deletion-file-name nil
:foreground dn-critical )
(set-face-attribute 'diredfl-file-suffix nil
:foreground dn-faded ))
(set-face-attribute 'org-link nil
:underline t )
(set-face-attribute 'font-lock-builtin-face nil
:foreground dn-violet )
(defun set-shell-face
( )
(set-face-attribute 'sh-quoted-exec nil
:foreground dn-blue ))
(add-hook 'sh-mode-hook #'set-shell-face )
(defun vterm-faces
( )
(set-face-attribute 'vterm-color-red nil
:foreground dn-critical
:background nil )
(set-face-attribute 'vterm-color-yellow nil
:foreground dn-attention
:background nil )
(set-face-attribute 'vterm-color-blue nil
:foreground dn-blue
:background nil )
(set-face-attribute 'vterm-color-magenta nil
:foreground dn-violet
:background nil )
(set-face-attribute 'vterm-color-green nil
:foreground dn-popout
:background nil ))
(add-hook 'vterm-mode-hook #'vterm-faces )
(after! font-latex
(set-face-attribute 'font-latex-script-char-face nil
:foreground dn-faded
:weight 'bold )
(set-face-attribute 'font-latex-math-face nil
:foreground dn-faded
:weight 'bold ))
(after! hydra
(set-face-attribute 'hydra-face-red nil
:foreground dn-critical
:weight 'bold ))
(after! smartparens
(set-face-attribute 'show-paren-match nil
:foreground dn-violet
:background dn-blue-green
:weight 'bold
:inverse-video t )
(set-face-attribute 'sp-show-pair-match-face nil
:foreground dn-violet
:background dn-blue-green
:weight 'bold
:inverse-video t ))
; for reference
;(set-face-attribute face nil
; :foreground 'unspecified :background 'unspecified
; :family 'unspecified :slant 'unspecified
; :weight 'unspecified :height 'unspecified
; :underline 'unspecified :overline 'unspecified
; :box 'unspecified :inherit style )
(provide 'nano-face-override)