/
dark-emacs-theme.el
203 lines (194 loc) · 11.9 KB
/
dark-emacs-theme.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
;;; dark-emacs-theme.el --- A dark theme that also works in a TTY
;;; Commentary:
;;; Code:
(deftheme dark-emacs
"Dark Emacs is designed to give the same look and feel as
`emacs --no-window-system'. It is based on a theme made by the
emacswiki user, ZWZ. The original can be found at
http://www.emacswiki.org/emacs/zwz.
It also tries to not interfere with the faces when emacs is
running in a tty (since that is the goal in the first place).
There are some `org-mode' or `notmuch' related faces defined
for TODO keywords, special tags, and search faces as well.
Color theme by Suvayu Ali. Created 2012-04-28.")
(custom-theme-set-variables
'dark-emacs
'(notmuch-search-line-faces
'(("unread" :foreground "green")
("flagged" :foreground "yellow")
("deleted" :foreground "red")))
'(org-todo-keyword-faces
'(("DBUG" . (:background "gold" :foreground "indianred3" :weight bold))
("LEAK" . (:background "gold" :foreground "indianred3" :weight bold))
("SEGF" . (:background "gold" :foreground "indianred3" :weight bold))
("CNCL" . (:background "snow3" :foreground "black" :weight bold))
))
'(org-tag-faces
'(("PROJ" . (:background "indianred3" :foreground "cornsilk2" :weight bold))
))
)
;; Customise using DISPLAY types if you wish to use both dark and
;; light backgrounds alternatively. This also takes values like tty
;; and nt to describe text terminals and windows machines. For more
;; details see:
;; - (info "(elisp)Defining Faces")
;; - (describe-function 'custom-theme-set-faces)
(custom-theme-set-faces
'dark-emacs
'(bold ((t (:weight bold :inherit (default)))))
'(bold-italic ((t (:weight bold :inherit (italic)))))
'(completions-common-part ((t (:foreground "forest green"))))
'(completions-first-difference ((t (:weight bold :foreground "salmon"))))
'(cursor ((((type graphic)) (:background "red")))
nil "All other attributes are ignored; in -nw mode depends on tty")
'(default ((((type graphic)) (:foreground "ivory2" :background "black"))))
'(diff-added ((default (:inherit diff-changed))
(((type tty) (class color) (min-colors 256)) (:inherit diff-changed :background "color-22"))
(((type graphic)) (:inherit diff-changed :background "#335533"))))
'(diff-changed ((default (:inherit default))))
'(diff-context ((t (:foreground "dim gray"))))
'(diff-file-header ((t (:inherit diff-header :weight bold))))
'(diff-header ((((type tty) (class color) (min-colors 256)) (:background "grey70"))
(((type graphic)) (:background "grey45"))))
'(diff-indicator-added ((t (:inherit diff-added :weight bold))))
'(diff-indicator-removed ((t (:inherit diff-removed :weight bold))))
'(diff-refine-added ((default (:inherit diff-refine-change))
(((type tty) (class color) (min-colors 256)) (:inherit diff-refine-change :background "color-28"))
(((type graphic)) (:inherit diff-refine-change :background "#22aa22"))))
'(diff-refine-removed ((default (:inherit diff-refine-change))
(((type tty) (class color) (min-colors 256)) (:inherit diff-refine-change :background "color-124"))
(((type graphic)) (:inherit diff-refine-change :background "#aa2222"))))
'(diff-removed ((default (:inherit diff-changed))
(((type tty) (class color) (min-colors 256)) (:inherit diff-changed :background "color-52"))
(((type graphic)) (:inherit diff-changed :background "#553333"))))
'(ediff-current-diff-A ((t (:inherit diff-removed))))
'(ediff-current-diff-B ((t (:inherit diff-added))))
'(ediff-current-diff-C ((((type tty) (class color) (min-colors 256)) (:background "#afaf5f"))))
;; TODO: reconsider what needs to be done for inactive hunks, A & B
;; buffers light-dark offset or in tandem?
'(ediff-even-diff-B ((t (:background "dim gray" :foreground "White"))))
'(ediff-fine-diff-A ((t (:inherit diff-refine-removed))))
'(ediff-fine-diff-B ((t (:inherit diff-refine-added))))
'(ediff-fine-diff-C ((((type tty) (class color) (min-colors 256)) (:background "#afaf00"))))
'(ediff-odd-diff-A ((t (:background "dim gray" :foreground "White"))))
'(ediff-odd-diff-C ((((type tty) (class color) (min-colors 256)) (:background "dim gray" :foreground "White"))))
'(font-latex-sectioning-5-face ((default (:foreground "DodgerBlue1" :weight semi-bold))
(((type tty) (class color) (min-colors 256)) (:foreground "#0087ff" :weight bold))))
'(font-lock-builtin-face ((((min-colors 88)) (:foreground "gold" :inherit (default)))))
'(font-lock-comment-face ((((type graphic)) (:foreground "cyan3" :inherit (italic)))
(((min-colors 88)) (:foreground "grey55"))))
'(font-lock-constant-face ((t (:foreground "LightGoldenrod2" :inherit (default)))))
'(font-lock-function-name-face ((((type graphic)) (:weight bold :foreground "white" :inherit (default)))
(((type tty)) (:foreground "brightblue" :weight bold))))
'(font-lock-keyword-face ((((type graphic)) (:foreground "firebrick1" :inherit (italic)))
(((type tty) (class color) (min-colors 88)) (:foreground "#ff0000"))))
'(font-lock-preprocessor-face ((t (:foreground "IndianRed3" :inherit (font-lock-builtin-face)))))
'(font-lock-string-face ((((type graphic)) (:foreground "lawn green" :inherit (default)))
(((type tty)) (:foreground "green"))))
'(font-lock-type-face ((t (:foreground "orchid" :inherit (italic)))))
'(font-lock-variable-name-face ((((type graphic)) (:foreground "orange" :inherit (bold)))
(((type tty)) (:inherit default :foreground "DarkOrange1"))))
'(font-lock-warning-face ((((type graphic)) (:foreground "Red1" :inherit (bold)))
(((type tty)) (:inherit (error bold)))))
'(highlight ((default (:background "blue" :inherit (default)))
(((type graphic)) (:foreground "yellow" :background "blue" :inherit (default)))))
'(info-header-xref ((((type tty)) (:inherit info-xref :foreground "darkgray"))))
'(info-menu-header ((t (:bold t :family "Sans Serif" :foreground "tomato" :weight bold))))
'(info-node ((t (:italic t :bold t :foreground "gold" :slant italic :weight bold))))
'(info-xref ((t (:inherit link :foreground "powder blue" :weight bold))))
'(info-xref-visited ((t (:foreground "violet" :underline t :weight bold))))
'(italic ((((supports :slant italic))
(:slant italic :foreground "blanched almond" :inherit default))
(((type tty)) (:slant normal :foreground "blanched almond" :inherit default))))
'(link ((t (:foreground "cyan" :underline t :weight extra-bold))))
'(link-visited ((t (:foreground "violet" :inherit link))))
'(lsp-face-highlight-textual ((t nil)))
'(lsp-lsp-flycheck-info-unnecessary-face ((t (:inherit flycheck-warning))) t)
'(lsp-ui-doc-background ((t (:background "#444444"))))
'(lsp-ui-peek-list ((t (:background "#444444"))))
'(lsp-ui-peek-peek ((t (:background "#444444"))))
'(magit-diff-added ((((type tty)) (:foreground "green"))))
'(magit-diff-added-highlight ((((type tty)) (:foreground "LimeGreen"))))
'(magit-diff-context-highlight ((((type tty)) (:foreground "default"))))
'(magit-diff-file-heading ((((type tty)) nil)))
'(magit-diff-none ((((type tty) (class color) (min-colors 256)) (:inherit diff-context))
(((type graphic)) (:inherit diff-context))))
'(magit-diff-removed ((((type tty)) (:foreground "red"))))
'(magit-diff-removed-highlight ((((type tty)) (:foreground "IndianRed"))))
'(magit-section-highlight ((((type tty)) nil)))
'(match ((((type graphic)) (:background "RoyalBlue3"))
(((type tty)) (:background "brightyellow" :foreground "black"))))
'(menu ((((type tty) (class color) (min-colors 256))
(:foreground "color-253" :inverse-video t))))
'(message-cited-text ((t :foreground "LightPink1")))
'(message-header-cc ((t (:foreground "lime green"))))
'(message-header-name ((t (:foreground "cornflower blue"))))
'(message-header-other ((t (:foreground "dark orange"))))
'(message-header-subject ((t (:inherit message-header-name :weight bold))))
'(message-header-to ((t (:inherit message-header-subject))))
'(message-header-xheader ((t (:foreground "sea green"))))
'(minibuffer-prompt ((t (:foreground "dark cyan" :weight bold))))
'(mode-line ((((type graphic)) (:foreground "blue" :background "azure"
:box (:line-width -1 :color nil :style released-button)))
(((type tty)) (:background "grey75" :foreground "black"))))
'(mode-line-buffer-id ((((type graphic)) (:weight bold :foreground "red" :background "ghost white"))))
'(mode-line-inactive ((t (:inherit mode-line :background "grey30" :foreground "grey80"))))
'(neo-dir-link-face ((((type tty)) (:inherit dired-directory))))
'(neo-file-link-face ((((type tty)) (:inherit default))))
'(neo-header-face ((((type tty)) (:inherit dired-directory))))
'(neo-root-dir-face ((((type tty)) (:inherit dired-header))))
'(notmuch-message-summary-face ((((type graphic)) (:background "#303030"))
(((type tty)) (:background "brightblack"))))
'(notmuch-tag-face ((t (:background "steel blue" :foreground "yellow" :weight semi-bold))))
'(notmuch-tree-match-author-face ((t (:foreground "OliveDrab1"))))
'(notmuch-tree-match-tag-face ((t (:foreground "OliveDrab1"))))
'(org-agenda-current-time ((t (:background "snow" :foreground "DodgerBlue4" :weight bold :inherit org-time-grid))))
'(org-agenda-structure ((t (:foreground "cyan"))))
'(org-code ((default (:inherit shadow))
(((type tty) (class color) (min-colors 256)) (:foreground "color-28" :inherit shadow))
(((type graphic)) (:foreground "ForestGreen" :inherit shadow))))
'(org-column ((((type graphic)) (:background "grey30"))
(((type tty)) (:background "grey20"))))
'(org-document-info ((default (:foreground "pale turquoise"))
(((type tty) (class color) (min-colors 256)) (:foreground "#0000ff"))))
'(org-document-title ((default (:foreground "pale turquoise" :weight bold))
(((type tty) (class color) (min-colors 256)) (:weight bold :foreground "#0000ff"))))
'(org-done ((t (:background "ForestGreen" :foreground "DarkSeaGreen2" :weight bold))))
'(org-inlinetask ((t (:inherit org-level-8 :slant oblique))))
'(org-level-3 ((t (:inherit outline-3 :foreground "sandy brown"))))
'(org-level-4 ((default (:inherit outline-4))
(((type tty) (min-colors 256)) (:inherit outline-4 :foreground "#00d7af"))))
'(org-table ((default (:foreground "LightSkyBlue"))
(((type tty) (class color) (min-colors 256)) (:foreground "#0000ff"))))
'(org-todo ((t (:background "royalblue4" :foreground "thistle" :weight bold))))
'(org-verbatim ((default (:inherit shadow))
(((type tty) (class color) (min-colors 256)) (:foreground "color-28" :inherit shadow))
(((type graphic)) (:foreground "ForestGreen" :inherit shadow))))
'(region ((((type graphic)) (:background "blue3"))
(((type tty) (class color) (min-colors 256)) (:background "#0000af"))))
'(rst-level-1 ((t (:background "grey85" :foreground "black"))))
'(rst-level-1-face ((t (:background "grey85" :foreground "black"))))
'(rst-level-2 ((t (:inherit rst-level-1 :background "grey78"))))
'(secondary-selection ((((type graphic)) (:background "wheat2"))
(((type tty)) (:background "color-144" :foreground "grey30")))
nil "Depends on tty in -nw mode")
'(shadow ((t (:foreground "grey75"))))
'(show-paren-match ((t (:background "SlateBlue1"))))
'(show-paren-mismatch ((t (:foreground "white" :background "magenta"))))
'(smerge-base ((t (:background "DarkOliveGreen4"))))
'(smerge-lower ((t (:background "SeaGreen3"))))
'(smerge-markers ((t (:background "grey55"))))
'(smerge-refined-added ((t (:inherit smerge-refined-change :background "DarkSeaGreen3"))))
'(smerge-upper ((t (:background "LightPink4"))))
'(sx-custom-button ((((type tty)) (:weight bold :foreground "blue3" :background "ivory2"))))
'(sx-question-mode-content-face ((((type tty)) nil)))
'(underline ((((supports :underline t))
(:underline t :foreground "green" :inherit (default)))))
'(woman-bold ((t (:weight bold :foreground "forest green"))))
'(woman-italic ((t (:slant italic :foreground "salmon"))))
;; custom faces go after this
;; '(sa-global-todo-face ((t (:background "royalblue4" :foreground "thistle" :weight bold)))
;; t "Face for TODO keywords globally.")
)
(provide-theme 'dark-emacs)
;;; dark-emacs-theme.el ends here