summaryrefslogtreecommitdiff
path: root/emacs/themes/acme-theme.el
blob: 317fe56cf68a10540ec441f643d37afaf771cd70 (plain)
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
;; acme-theme.el -- A theme inspired by the classic colours of the ACME editor.
;; Copyright (C) 2014 , Tslil Clingman

;; Version: 0.1
;; Package-Requires: ((emacs "24"))

;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

;; This file is not part of Emacs.

(deftheme acme
  "A theme inspired by the classic colours of the ACME editor.")

(let ((bg-yellow "#FFFFEA")
      (bg-blue "#DAEFEF")

      (lazy "#D1D1C0")
      (mud "#99994C")

      (yellow "#EAEA9E")
      (blue "#268BD2")
      (red "#AA0000")
      (purple "#8888CC")
      (green "#508050")
      (link "#D05000"))
  (custom-theme-set-faces
   'acme

   `(default ((t (:background ,bg-yellow :foreground "black"))))
   '(cursor ((t (:background "black"))))
   '(escape-glyph ((t (:foreground "black"))))
   '(highlight ((t (:foreground "grey30"))))
   '(region ((t (:background "orange" :foreground "black"))))
   `(secondary-selection ((t (:background ,red))))
   '(trailing-whitespace ((t (:background "grey"))))
   `(widget-field ((t (:background ,bg-blue))))

   '(font-lock-builtin-face ((t (:foreground "black" :slant normal))))
   '(font-lock-comment-delimiter-face ((t (:inherit (font-lock-comment-face)))))
   '(font-lock-comment-face ((t (:foreground "black" :slant italic))))
   '(font-lock-constant-face ((t (:foreground "black"))))
   '(font-lock-doc-face ((t (:foreground "black" :slant italic))))
   '(font-lock-function-name-face ((t (:foreground "black" :weight bold))))
   '(font-lock-keyword-face ((t (:foreground "black" :weight bold))))
   '(font-lock-negation-char-face ((t (:foreground "black"))))
   '(font-lock-preprocessor-face ((t (:inherit (font-lock-builtin-face)))))
   '(font-lock-string-face ((t (:foreground "black"))))
   '(font-lock-type-face ((t (:foreground "black" :underline t))))
   '(font-lock-variable-name-face ((t (:foreground "black"))))
   '(font-lock-warning-face ((t (:foreground "black"))))

   `(link ((t (:underline (:color foreground-color :style line) :foreground ,link))))
   '(button ((t (:inherit (link)))))
   '(link-visited ((t (:inherit (link)))))

   `(fringe ((t (:background ,bg-yellow :foreground "black"))))

   `(line-number ((t (:inherit default))))
   `(line-number-current-line ((t (:inherit default :background ,purple))))

   `(mode-line ((t (:background ,bg-blue :foreground "black" :box 2))))
   '(mode-line-buffer-id ((t (:foreground "black" :weight bold))))
   '(mode-line-emphasis ((t (:foreground "black"))))
   '(mode-line-highlight ((t (:weight bold :box nil :foreground "black"))))
   `(mode-line-inactive ((t (:background ,bg-blue :foreground "#393939" :weight normal :box t))))

   '(minibuffer-line ((t (:inherit default))))
   '(minibuffer-prompt ((t (:inherit (minibuffer-line) :weight bold))))

   `(isearch ((t (:background ,yellow))))
   `(isearch-fail ((t (:background ,red))))
   `(lazy-highlight ((t (:foreground "black" :weight bold :background ,bg-blue))))
   `(match ((t (:background ,yellow))))
   '(next-error ((t (:inherit (region)))))
   '(query-replace ((t (:inherit (isearch)))))
   ;; '(table-cell  ((t (:inherit (default)))))

   `(show-paren-match ((t (:weight bold :background ,purple))))
   `(show-paren-mismatch ((t (:background ,red))))
   `(sp-show-pair-match-face ((t (:weight bold :background ,purple))))
   `(sp-show-pair-mismatch-face ((t (:background ,red))))

   '(eshell-prompt-face ((t (:inherit default :weight bold))))

   `(company-echo-common ((t (:foreground "black" :background ,bg-blue :weight bold))))
   `(company-preview-common ((t (:foreground "black" :background ,yellow))))
   `(company-scrollbar-bg ((t (:background "grey"))))
   `(company-scrollbar-fg ((t (:background ,green))))
   `(company-tooltip ((t (:foreground "black" :background ,bg-blue))))
   `(company-tooltip-search ((t (:foreground "black" :background ,yellow))))
   `(company-tooltip-annotation ((t (:foreground ,link :slant italic))))
   `(company-tooltip-common ((t (:foreground "black" :weight bold))))
   `(company-tooltip-common-selection ((t (:foreground "black" :background ,yellow :weight bold))))
   `(company-tooltip-selection ((t (:background ,yellow :foreground "black"))))

   '(sh-quoted-exec ((t (:foreground "black" :underline t))))

   '(font-latex-bold-face ((t (:weight bold))))
   '(font-latex-italic-face ((t (:slant italic))))
   `(font-latex-math-face ((t (:box (:line-width 2 :color ,lazy :style pressed-button)
                                    :foreground "black"))))
   '(font-latex-script-char-face ((t (:inherit default))))
   '(font-latex-string-face ((t (:inherit default))))
   '(font-latex-verbatim-face ((t (:inherit default))))
   '(font-latex-sedate-face ((t (:inherit default))))
   '(font-latex-warning-face ((t (:inherit default))))
   '(font-latex-sectioning-5-face ((t (:foreground "black" :weight normal))))

   ;; '(tex-math ((t (:inherit font-latex-math-face))))
   ;; '(TeX-error-description-error ((t (:inherit default))))
   ;; '(TeX-error-description-help ((t (:inherit default))))
   ;; '(TeX-error-description-warning ((t (:inherit default))))
   ;; '(TeX-error-description-tex-said ((t (:inherit default))))

   `(shm-current-face ((t (:background ,bg-blue))))
   '(shm-quarantine-face ((t nil)))

   `(avy-goto-char-timer-face ((t (:background ,bg-blue))))
   `(avy-lead-face ((t (:background ,yellow))))
   `(avy-lead-face-0 ((t (:background ,green))))
   `(avy-lead-face-1 ((t (:background ,red))))
   `(avy-lead-face-2 ((t (:background ,purple))))

   '(custom-group-tag ((t (:inherit default :height 1.2 :weight bold))))
   '(custom-variable-tag ((t (:inherit default :weight bold))))

   '(company-coq-comment-h1-face ((t (:height 1.8 :slant italic
                                              :inherit (default)))))
   '(company-coq-comment-h2-face ((t (:height 1.4 :slant italic
                                              :inherit (default)))))
   '(company-coq-comment-h3-face ((t (:height 1.2 :slant italic
                                              :inherit (default)))))
   '(company-coq-coqdoc-h1-face ((t (:weight bold :inverse-video t))))
   '(company-coq-coqdoc-h2-face ((t (:weight bold :underline t))))
   '(company-coq-coqdoc-h3-face ((t (:underline t))))
   ;; '(company-coq-coqdoc-h4-face ((t (:inherit (default)))))
   '(company-coq-features/code-folding-bullet-face ((t (:foreground "black" :weight bold))))

   '(coq-solve-tactics-face ((t (:foreground "black" :underline t))))
   `(proof-error-face ((t (:foreground ,red))))
   '(proof-tactics-name-face ((t (:foreground "black" :weight bold))))
   '(proof-tacticals-name-face ((t (:foreground "black" :underline t))))
   `(proof-locked-face ((t (:background ,bg-blue))))

   `(ivy-current-match ((t (:foreground "black" :background ,purple :weight bold))))
   '(ivy-minibuffer-match-face-1 ((t (:inherit default))))
   '(ivy-minibuffer-match-face-2 ((t (:inherit ivy-minibuffer-match-face-1))))
   '(ivy-minibuffer-match-face-3 ((t (:inherit ivy-minibuffer-match-face-1))))
   '(ivy-minibuffer-match-face-4 ((t (:inherit ivy-minibuffer-match-face-1))))
   `(ivy-cursor-face ((t (:background ,yellow))))

   `(swiper-line-face ((t (:inherit default))))
   `(swiper-match-face-1 ((t (:background ,bg-blue :weight bold :box 1))))
   `(swiper-match-face-2 ((t (:inherit swiper-match-face-1))))
   `(swiper-match-face-3 ((t (:inherit swiper-match-face-1))))
   `(swiper-match-face-4 ((t (:inherit swiper-match-face-1))))
   `(swiper-background-match-face-1 ((t (:weight bold))))
   `(swiper-background-match-face-2 ((t (:inherit swiper-background-match-face-1))))
   `(swiper-background-match-face-3 ((t (:inherit swiper-background-match-face-1))))
   `(swiper-background-match-face-4 ((t (:inherit swiper-background-match-face-1))))

   '(magit-blame-heading ((t (inherit :default))))
   '(magit-blame-margin ((t (inherit :default))))
   '(magit-blame-hilight ((t (inherit :default))))
   '(magit-branch-current ((t (inherit :default))))
   '(magit-branch-local ((t (inherit :default))))
   '(magit-branch-remote ((t (inherit :default))))
   '(magit-branch-remote-head ((t (inherit :default))))
   '(magit-cherry-equivalent ((t (inherit :default))))
   '(magit-cherry-unmatched ((t (inherit :default))))
   '(magit-diff-added ((t (inherit :default))))
   '(magit-diff-added-highlight ((t (inherit :default))))
   '(magit-diff-base ((t (inherit :default))))
   '(magit-diff-base-highlight ((t (inherit :default))))
   '(magit-diff-conflicting-heading ((t (inherit :default))))
   '(magit-diff-context ((t (inherit :default))))
   '(magit-diff-context-highlight ((t (inherit :default))))
   '(magit-diff-file-heading-highlight ((t (inherit :default))))
   '(magit-diff-file-heading-selection ((t (inherit :default))))
   '(magit-diff-hunk-heading ((t (inherit :default))))
   '(magit-diff-hunk-heading-highlight ((t (inherit :default))))
   '(magit-diff-hunk-heading-selection ((t (inherit :default))))
   '(magit-diff-lines-heading ((t (inherit :default))))
   '(magit-diff-our ((t (inherit :default))))
   '(magit-diff-removed ((t (inherit :default))))
   '(magit-diff-removed-highlight ((t (inherit :default))))
   '(magit-refname ((t (inherit :default))))
   '(magit-refname-pullreq ((t (inherit :default))))
   '(magit-refname-stash ((t (inherit :default))))
   '(magit-refname-wip ((t (inherit :default))))
   '(magit-section-highlight ((t (inherit :default))))
   ))

(provide-theme 'acme)

;; (cl-loop for face in (face-list) do
;;          (set-face-attribute face nil :foreground nil :background nil))