]> code.delx.au - gnu-emacs-elpa/blob - packages/ahungry-theme/ahungry-theme.el
Add 'packages/async/' from commit '2a40355c3328e57102a9648c9108e19d67727dc1'
[gnu-emacs-elpa] / packages / ahungry-theme / ahungry-theme.el
1 ;;; ahungry-theme.el --- Ahungry color theme for Emacs. Make sure to (load-theme 'ahungry). -*- lexical-binding:t -*-
2
3 ;; Copyright (C) 2015 Free Software Foundation, Inc.
4
5 ;; Author: Matthew Carter <m@ahungry.com>
6 ;; Maintainer: Matthew Carter <m@ahungry.com>
7 ;; URL: https://github.com/ahungry/color-theme-ahungry
8 ;; Version: 1.0.12
9 ;; Keywords: ahungry palette color theme emacs color-theme deftheme
10 ;; Package-Requires: ((emacs "24"))
11
12 ;; This file is part of GNU Emacs.
13
14 ;;; License:
15
16 ;; This program is free software: you can redistribute it and/or modify
17 ;; it under the terms of the GNU General Public License as published by
18 ;; the Free Software Foundation, either version 3 of the License, or
19 ;; (at your option) any later version.
20 ;;
21 ;; This program is distributed in the hope that it will be useful,
22 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;; GNU General Public License for more details.
25 ;;
26 ;; You should have received a copy of the GNU General Public License
27 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
28
29 ;;; Commentary:
30
31 ;; Bright and bold color theme for GNU Emacs.
32
33 ;; If you load it from a terminal, you will be able to make use of the
34 ;; transparent background. If you load it from a GUI, it will default
35 ;; to a dark background.
36
37 ;;; News:
38
39 ;;;; Changes since 1.0.11:
40 ;; - Purple is too hard to read on poor contrast monitors, use a blue
41
42 ;;;; Changes since 1.0.10:
43 ;; - Add faces for powerline/spaceline setup
44 ;; - Reduce org-mode heading sizes slightly
45
46 ;;;; Changes since 1.0.9:
47 ;; - Add/adjust some of the org-mode faces
48
49 ;;;; Changes since 1.0.8:
50 ;; - Add even more colors for magit 2.0 face names
51
52 ;;;; Changes since 1.0.7:
53 ;; - Add colors for magit 2.0 face names
54
55 ;;;; Changes since 1.0.6:
56 ;; - Remove warning producing call to "default" background color
57 ;; - Add a color update for mm-uu-extract
58
59 ;;;; Changes since 1.0.5:
60 ;; - Add a few colors for helm (the defaults did not work well with this theme)
61
62 ;;;; Changes since 1.0.4:
63 ;; - Don't circumvent normal autoloads functionality, use the comment load method
64
65 ;;;; Changes since 1.0.3:
66 ;; - Manually include an autoloads file to make sure
67 ;; custom-theme-load-path is filled out
68 ;; - Update description to make mention of (load-theme 'ahungry) for new users
69
70 ;;; Code:
71
72 (deftheme ahungry
73 "Ahungry Theme")
74
75 (let ((mainbg (when (display-graphic-p) "#222222")));; "default")))
76 (custom-theme-set-faces
77 'ahungry ;; This is the theme name
78 `(default ((t (:foreground "#ffffff" :background ,mainbg
79 :family "Terminus" :foundry "xos4"
80 :slant normal :weight normal
81 :height 100 :width normal))))
82 '(cursor ((t (:background "#fce94f" :foreground "#ffffff"))))
83 '(highlight ((t (:background "brown4" :foreground nil))))
84 '(border ((t (:background "#888a85"))))
85 '(fringe ((t (:background "#333333"))))
86 '(mode-line ((t (:foreground "#0022ff" :bold t :background "#77ff00"
87 :box (:line-width 1 :color nil :style released-button)))))
88 '(mode-line-inactive ((t (:foreground "#444444" :background "#66ff33"))))
89 '(mode-line-buffer-id ((t (:bold t :foreground "#ffffff" :background "#0055ff"))))
90 '(powerline-active1 ((t (:foreground "#ffffff" :background "#222222"))))
91 '(powerline-active2 ((t (:foreground "#ffffff" :background "#77ff00"))))
92 '(powerline-inactive1 ((t (:foreground "#ffffff" :background "#555555"))))
93 '(powerline-inactive2 ((t (:foreground "#ffffff" :background "#66ff33"))))
94 '(spaceline-flycheck-error ((t (:foreground "#ff0066" :background "#333333"))))
95 '(spaceline-flycheck-info ((t (:foreground "#ffaa00" :background "#333333"))))
96 '(spaceline-flycheck-warning ((t (:foreground "#ffaa00" :background "#333333"))))
97 '(region ((t (:background "#444444"))))
98 '(link ((t (:underline t :foreground "#33ff99"))))
99 '(custom-link ((t (:inherit 'link))))
100 '(match ((t (:bold t :background "#e9b96e" :foreground "#2e3436"))))
101 '(tool-tips ((t (:inherit 'variable-pitch :foreground "black" :background "#ffff33"))))
102 '(tooltip ((t (:inherit 'variable-pitch :foreground "black" :background "#ffff33"))))
103 '(bold ((t (:bold t :underline nil :background nil))))
104 '(italic ((t (:italic t :underline nil :background nil))))
105 '(font-lock-builtin-face ((t (:foreground "#0055ff"))))
106 '(font-lock-comment-face ((t (:foreground "#888a85" :bold nil :italic t))))
107 '(font-lock-constant-face ((t (:foreground "#fff900"))))
108 '(font-lock-doc-face ((t (:foreground "#777700" :bold t :italic t))))
109 '(font-lock-keyword-face ((t (:foreground "#3cff00" :bold t))))
110 '(font-lock-string-face ((t (:foreground "#ff0077" :italic nil :bold nil))))
111 '(font-lock-type-face ((t (:foreground "#deff00" :bold t))))
112 '(font-lock-variable-name-face ((t (:foreground "#0033ff" :bold t))))
113 '(font-lock-warning-face ((t (:bold t :foreground "#ff0000"))))
114 '(font-lock-function-name-face ((t (:foreground "#ffee00" :bold t))))
115 '(comint-highlight-input ((t (:italic t :bold t))))
116 '(comint-highlight-prompt ((t (:foreground "#33cc33"))))
117 '(diff-header ((t (:background "#444444"))))
118 '(diff-index ((t (:foreground "#ffff00" :bold t))))
119 '(diff-file-header ((t (:foreground "#aaaaaa" :bold t))))
120 '(diff-hunk-header ((t (:foreground "#ffff00"))))
121 '(diff-added ((t (:background "default" :foreground "#00ff00" :weight normal))))
122 '(diff-removed ((t (:background "default" :foreground "#ff0000" :weight normal))))
123 '(diff-context ((t (:foreground "#777777"))))
124 '(diff-refine-change ((t (:bold t :background "#444444"))))
125 '(isearch ((t (:background "#ff6600" :foreground "#333333"))))
126 '(isearch-lazy-highlight-face ((t (:foreground "#2e3436" :background "#ff6600"))))
127 '(show-paren-match-face ((t (:background "#ff6600" :foreground "#2e3436"))))
128 '(show-paren-mismatch-face ((t (:background "#999999" :foreground "#ff6600"))))
129 '(info-xref ((t (:foreground "#33ffbb"))))
130 '(info-xref-visited ((t (:foreground "#999999"))))
131 '(diary ((t (:bold t :foreground "#ff0000"))))
132 '(message-cited-text ((t (:foreground "#ffc800"))))
133 '(gnus-cite-1 ((t (:foreground "#999999"))))
134 '(gnus-cite-2 ((t (:foreground "#cba559"))))
135 '(gnus-cite-3 ((t (:foreground "#83ae92"))))
136 '(gnus-cite-4 ((t (:foreground "#6898a7"))))
137 '(gnus-cite-face-1 ((t (:foreground "#999999"))))
138 '(gnus-cite-face-2 ((t (:foreground "#cba559"))))
139 '(gnus-cite-face-3 ((t (:foreground "#83ae92"))))
140 '(gnus-cite-face-4 ((t (:foreground "#6898a7"))))
141 '(gnus-group-mail-1-empty ((t (:foreground "#009955"))))
142 '(gnus-group-mail-1 ((t (:bold t :foreground "#ff9900"))))
143 '(gnus-group-mail-2-empty ((t (:foreground "#009955"))))
144 '(gnus-group-mail-2 ((t (:bold t :foreground "#ffaa00"))))
145 '(gnus-group-mail-3-empty ((t (:foreground "#009955"))))
146 '(gnus-group-mail-3 ((t (:bold t :foreground "#ffcc00"))))
147 '(gnus-group-mail-low-empty ((t (:foreground "#009955"))))
148 '(gnus-group-mail-low ((t (:bold t :foreground "#005fff"))))
149 '(gnus-group-news-1-empty ((t (:foreground "#009955"))))
150 '(gnus-group-news-1 ((t (:bold t :foreground "#ff9900"))))
151 '(gnus-group-news-2-empty ((t (:foreground "#009955"))))
152 '(gnus-group-news-2 ((t (:bold t :foreground "#ffaa00"))))
153 '(gnus-group-news-3-empty ((t (:foreground "#009955"))))
154 '(gnus-group-news-3 ((t (:bold t :foreground "#ffcc00"))))
155 '(gnus-group-news-low-empty ((t (:foreground "#009955"))))
156 '(gnus-group-news-low ((t (:bold t :foreground "#005fff"))))
157 '(gnus-header-name ((t (:bold t :foreground "#33ffbb"))))
158 '(gnus-header-from ((t (:bold t :foreground "#ffc800"))))
159 '(gnus-header-subject ((t (:foreground "#ffc800"))))
160 '(gnus-header-content ((t (:italic t :foreground "#33cc33"))))
161 '(gnus-header-newsgroups ((t (:italic t :bold t :foreground "#0088ff"))))
162 '(gnus-signature ((t (:italic t :foreground "#666666"))))
163 '(gnus-summary-cancelled ((t (:background "#222222" :foreground "#ffff00"))))
164 '(gnus-summary-high-ancient ((t (:bold t :foreground "#0099ff"))))
165 '(gnus-summary-high-read ((t (:bold t :foreground "#33ff99"))))
166 '(gnus-summary-high-ticked ((t (:bold t :foreground "#f68585"))))
167 '(gnus-summary-high-unread ((t (:bold t :foreground "#ffffff"))))
168 '(gnus-summary-low-ancient ((t (:italic t :foreground "#33ff99"))))
169 '(gnus-summary-low-read ((t (:italic t :foreground "#0099ff"))))
170 '(gnus-summary-low-ticked ((t (:italic t :foreground "#ff3333"))))
171 '(gnus-summary-low-unread ((t (:italic t :foreground "#ffffff"))))
172 '(gnus-summary-normal-ancient ((t (:foreground "#0099ff"))))
173 '(gnus-summary-normal-read ((t (:foreground "#33ff99"))))
174 '(gnus-summary-normal-ticked ((t (:foreground "#ff0000"))))
175 '(gnus-summary-normal-unread ((t (:foreground "#ffffff"))))
176 '(gnus-summary-selected ((t (:background "brown4" :foreground "#ffffff"))))
177 '(message-header-name ((t (:foreground "#f68585"))))
178 '(message-header-newsgroups ((t (:italic t :bold t :foreground "#0088ff"))))
179 '(message-header-other ((t (:foreground "#0088ff"))))
180 '(message-header-xheader ((t (:foreground "#0088ff"))))
181 '(message-header-subject ((t (:foreground "#ffffff"))))
182 '(message-header-to ((t (:foreground "#ffffff"))))
183 '(message-header-cc ((t (:foreground "#ffffff"))))
184 '(mm-uu-extract ((t (:foreground "#0066ff"))))
185 '(org-hide ((t (:foreground "#222222"))))
186 '(org-level-1 ((t (:bold t :foreground "#4477ff" :height 1.4))))
187 '(org-level-2 ((t (:bold nil :foreground "#ffc800" :height 1.1))))
188 '(org-level-3 ((t (:bold t :foreground "#00aa33" :height 1.0))))
189 '(org-level-4 ((t (:bold nil :foreground "#f68585" :height 1.0))))
190 '(org-date ((t (:underline t :foreground "#ff0066"))))
191 '(org-footnote ((t (:underline t :foreground "#ff0066"))))
192 '(org-link ((t (:foreground "skyblue2" :background "#2e3436"))))
193 '(org-special-keyword ((t (:foreground "#cc0033"))))
194 '(org-verbatim ((t (:foreground "#cc6600" :underline t :slant italic))))
195 '(org-block ((t (:foreground "#999999"))))
196 '(org-quote ((t (:inherit org-block :bold t :slant italic))))
197 '(org-verse ((t (:inherit org-block :bold t :slant italic))))
198 '(org-table ((t (:foreground "#0055ff"))))
199 '(org-todo ((t (:bold t :foreground "#ff0099"))))
200 '(org-done ((t (:bold t :foreground "#00cc33"))))
201 '(org-agenda-structure ((t (:weight bold :foreground "#f68585"))))
202 '(org-agenda-date ((t (:foreground "#00ff55"))))
203 '(org-agenda-date-weekend ((t (:weight normal :foreground "#005fff"))))
204 '(org-agenda-date-today ((t (:weight bold :foreground "#ffc800"))))
205 '(org-agenda-done ((t (:weight normal :foreground "#00aa33"))))
206 '(org-block-begin-line ((t (:foreground "#bbbbbb" :background "#333333"))))
207 '(org-block-background ((t (:background "#333333"))))
208 '(org-block-end-line ((t (:foreground "#bbbbbb" :background "#333333"))))
209 '(org-document-title ((t (:weight bold :foreground "#0077cc"))))
210 '(org-document-info ((t (:weight normal :foreground "#0077cc"))))
211 '(org-document-info-keyword ((t (:weight normal :foreground "#aaaaaa"))))
212 '(org-warning ((t (:weight normal :foreground "#ee0033"))))
213 '(magit-hash ((t (:foreground "#6699aa"))))
214 '(magit-branch-local ((t (:foreground "#0066ff"))))
215 '(magit-branch-remote ((t (:foreground "#ffcc44"))))
216 '(magit-diffstat-added ((t (:foreground "#00ff66"))))
217 '(magit-diff-added-highlight ((t (:foreground "#33ff00" :weight normal))))
218 '(magit-diff-added ((t (:foreground "#44aa00" :weight normal))))
219 '(magit-diff-removed-highlight ((t (:foreground "#ff0033" :weight normal))))
220 '(magit-diff-removed ((t (:foreground "#aa0044" :weight normal))))
221 '(magit-diff-hunk-heading ((t (:foreground "#aaaa00"))))
222 '(magit-diff-hunk-heading-highlight ((t (:foreground "#ffff00"))))
223 '(magit-diffstat-removed ((t (:foreground "#ff0066"))))
224 '(magit-diff-context-highlight ((t (:foreground "#ffffff"))))
225 '(magit-section-heading ((t (:foreground "#ff0066"))))
226 '(magit-section-highlight ((t (:weight bold))));;:foreground "#ffffff"))))
227 '(minibuffer-prompt ((t (:foreground "#0055ff" :bold t))))
228 '(web-mode-html-tag-bracket-face ((t (:foreground "#666666"))))
229 '(helm-selection ((t (:foreground "#ff0099" :italic t :bold t :background "#f2e997"))))
230 '(helm-match ((t (:foreground "gold1"))))
231 '(helm-visible-mark ((t (:background "#f2e997" :foreground "#ff0099" :bold nil :italic nil))))
232 )
233 (custom-theme-set-variables
234 'ahungry
235 '(red "#ffffff"))
236 )
237
238 ;;;###autoload
239 (when (and load-file-name (boundp 'custom-theme-load-path))
240 (add-to-list
241 'custom-theme-load-path
242 (file-name-as-directory (file-name-directory load-file-name))))
243
244 (provide-theme 'ahungry)
245
246 ;;; ahungry-theme.el ends here