emacs: disable typo for now
[~bandali/configs] / .emacs.d / lisp / tangomod-theme.el
1 ;;; tangomod-theme.el --- Tango-based custom theme for faces
2
3 ;; Copyright (C) 2010-2013 Free Software Foundation, Inc.
4
5 ;; Authors: Chong Yidong <cyd@stupidchicken>
6 ;; Jan Moringen <jan.moringen@uni-bielefeld.de>
7
8 ;; This file is part of GNU Emacs.
9
10 ;; GNU Emacs is free software: you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation, either version 3 of the License, or
13 ;; (at your option) any later version.
14
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22
23 ;;; Commentary
24
25 ;; The colors in this theme come from the Tango palette, which is in
26 ;; the public domain: http://tango.freedesktop.org/
27
28 ;;; Code:
29
30 (deftheme tangomod
31 "Face colors using the Tango palette (light background).
32 Basic, Font Lock, Isearch, Gnus, Message, Ediff, Flyspell,
33 Semantic, and Ansi-Color faces are included.")
34
35 (let ((class '((class color) (min-colors 89)))
36 ;; Tango palette colors.
37 (butter-1 "#fce94f") (butter-2 "#edd400") (butter-3 "#c4a000")
38 (orange-1 "#fcaf3e") (orange-2 "#f57900") (orange-3 "#ce5c00")
39 (choc-1 "#e9b96e") (choc-2 "#c17d11") (choc-3 "#8f5902")
40 (cham-1 "#8ae234") (cham-2 "#73d216") (cham-3 "#4e9a06")
41 (blue-1 "#729fcf") (blue-2 "#3465a4") (blue-3 "#204a87")
42 (plum-1 "#ad7fa8") (plum-2 "#75507b") (plum-3 "#5c3566")
43 (red-1 "#ef2929") (red-2 "#cc0000") (red-3 "#a40000")
44 (alum-1 "#ffffff") (alum-2 "#d3d7cf") (alum-3 "#babdb6")
45 (alum-4 "#888a85") (alum-5 "#5f615c") (alum-6 "#000000")
46 ;; Not in Tango palette; used for better contrast.
47 (cham-4 "#346604") (blue-0 "#8cc4ff") (orange-4 "#b35000"))
48
49 (custom-theme-set-faces
50 'tangomod
51 `(default ((,class (:foreground ,alum-6 :background ,alum-1))))
52 `(cursor ((,class (:background ,blue-3))))
53 ;; Highlighting faces
54 `(fringe ((,class (:background "#FFFFFF")))) ;; EDITED
55 `(highlight ((,class (:foreground ,alum-6 :background ,butter-2))))
56 ;; Disabled for talk at PL offsite
57 ;; `(highlight ((,class (:background ,alum-3))))
58 `(region ((,class (:background ,alum-3))))
59 `(secondary-selection ((,class (:background ,blue-0))))
60 `(isearch ((,class (:foreground "#ffffff" :background ,orange-3))))
61 `(lazy-highlight ((,class (:background ,choc-1))))
62 `(trailing-whitespace ((,class (:background ,red-1))))
63 ;; Paren face
64 `(show-paren-match ((,class (:background ,blue-1))))
65 ;; Mode line faces
66 `(mode-line ((,class (:box (:line-width -1 :style released-button)
67 :background ,alum-2 :foreground ,alum-6))))
68 `(mode-line-inactive ((,class (:box (:line-width -1 :style released-button)
69 :background ,alum-4 :foreground ,alum-6))))
70 ;; Escape and prompt faces
71 `(minibuffer-prompt ((,class (:weight bold :foreground ,blue-3))))
72 `(escape-glyph ((,class (:foreground ,red-3))))
73 `(error ((,class (:foreground ,red-3))))
74 `(warning ((,class (:foreground ,orange-3))))
75 `(success ((,class (:foreground ,cham-3))))
76 ;; Font lock faces
77 `(font-lock-builtin-face ((,class (:foreground ,plum-2))))
78 `(font-lock-comment-face ((,class (:slant italic :foreground ,alum-5))))
79 `(font-lock-constant-face ((,class (:weight bold :foreground ,blue-3))))
80 `(font-lock-function-name-face ((,class (:foreground ,red-3))))
81 `(font-lock-keyword-face ((,class (:foreground ,cham-4))))
82 `(font-lock-string-face ((,class (:foreground ,plum-3))))
83 `(font-lock-type-face ((,class (:foreground ,blue-3))))
84 `(font-lock-variable-name-face ((,class (:foreground ,orange-4))))
85 ;; Button and link faces
86 `(link ((,class (:underline t :foreground ,blue-3))))
87 `(link-visited ((,class (:underline t :foreground ,blue-2))))
88 ;; Gnus faces
89 `(gnus-group-news-1 ((,class (:weight bold :foreground ,plum-3))))
90 `(gnus-group-news-1-low ((,class (:foreground ,plum-3))))
91 `(gnus-group-news-2 ((,class (:weight bold :foreground ,blue-3))))
92 `(gnus-group-news-2-low ((,class (:foreground ,blue-3))))
93 `(gnus-group-news-3 ((,class (:weight bold :foreground ,red-3))))
94 `(gnus-group-news-3-low ((,class (:foreground ,red-3))))
95 `(gnus-group-news-4 ((,class (:weight bold :foreground ,"#7a4c02"))))
96 `(gnus-group-news-4-low ((,class (:foreground ,"#7a4c02"))))
97 `(gnus-group-news-5 ((,class (:weight bold :foreground ,orange-3))))
98 `(gnus-group-news-5-low ((,class (:foreground ,orange-3))))
99 `(gnus-group-news-low ((,class (:foreground ,alum-4))))
100 `(gnus-group-mail-1 ((,class (:weight bold :foreground ,plum-3))))
101 `(gnus-group-mail-1-low ((,class (:foreground ,plum-3))))
102 `(gnus-group-mail-2 ((,class (:weight bold :foreground ,blue-3))))
103 `(gnus-group-mail-2-low ((,class (:foreground ,blue-3))))
104 `(gnus-group-mail-3 ((,class (:weight bold :foreground ,cham-3))))
105 `(gnus-group-mail-3-low ((,class (:foreground ,cham-3))))
106 `(gnus-group-mail-low ((,class (:foreground ,alum-4))))
107 `(gnus-header-content ((,class (:foreground ,cham-3))))
108 `(gnus-header-from ((,class (:weight bold :foreground ,butter-3))))
109 `(gnus-header-subject ((,class (:foreground ,red-3))))
110 `(gnus-header-name ((,class (:foreground ,blue-3))))
111 `(gnus-header-newsgroups ((,class (:foreground ,alum-4))))
112 ;; Message faces
113 `(message-header-name ((,class (:foreground ,blue-3))))
114 `(message-header-cc ((,class (:foreground ,butter-3))))
115 `(message-header-other ((,class (:foreground ,choc-2))))
116 `(message-header-subject ((,class (:foreground ,red-3))))
117 `(message-header-to ((,class (:weight bold :foreground ,butter-3))))
118 `(message-cited-text ((,class (:slant italic :foreground ,alum-5))))
119 `(message-separator ((,class (:weight bold :foreground ,cham-3))))
120 ;; SMerge
121 `(smerge-refined-change ((,class (:background ,plum-1))))
122 ;; Ediff
123 `(ediff-current-diff-A ((,class (:background ,blue-1))))
124 `(ediff-fine-diff-A ((,class (:background ,plum-1))))
125 `(ediff-current-diff-B ((,class (:background ,butter-1))))
126 `(ediff-fine-diff-B ((,class (:background ,orange-1))))
127 ;; Flyspell
128 `(flyspell-duplicate ((,class (:underline ,orange-1))))
129 `(flyspell-incorrect ((,class (:underline ,red-1))))
130 ;; Semantic faces
131 `(semantic-decoration-on-includes ((,class (:underline ,cham-4))))
132 `(semantic-decoration-on-private-members-face
133 ((,class (:background ,alum-2))))
134 `(semantic-decoration-on-protected-members-face
135 ((,class (:background ,alum-2))))
136 `(semantic-decoration-on-unknown-includes
137 ((,class (:background ,choc-3))))
138 `(semantic-decoration-on-unparsed-includes
139 ((,class (:underline ,orange-3))))
140 `(semantic-tag-boundary-face ((,class (:overline ,blue-1))))
141 `(semantic-unmatched-syntax-face ((,class (:underline ,red-1)))))
142
143 (custom-theme-set-variables
144 'tangomod
145 `(ansi-color-names-vector [,alum-6 ,red-3 ,cham-3 ,butter-3
146 ,blue-3 ,plum-3 ,blue-1 ,alum-1])))
147
148 (provide-theme 'tangomod)
149
150 ;; Local Variables:
151 ;; no-byte-compile: t
152 ;; End:
153
154 ;;; tangomod-theme.el ends here