]> code.delx.au - gnu-emacs-elpa/blob - packages/ahungry-theme/ahungry-theme.el
Merge commit '1ce5a659e968af25122b46a3fc3b04b30b5ebdd5'
[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,2016 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.1.0
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.12:
40 ;; - Add erc/jabber faces to begin with
41
42 ;;;; Changes since 1.0.11:
43 ;; - Purple is too hard to read on poor contrast monitors, use a blue
44
45 ;;;; Changes since 1.0.10:
46 ;; - Add faces for powerline/spaceline setup
47 ;; - Reduce org-mode heading sizes slightly
48
49 ;;;; Changes since 1.0.9:
50 ;; - Add/adjust some of the org-mode faces
51
52 ;;;; Changes since 1.0.8:
53 ;; - Add even more colors for magit 2.0 face names
54
55 ;;;; Changes since 1.0.7:
56 ;; - Add colors for magit 2.0 face names
57
58 ;;;; Changes since 1.0.6:
59 ;; - Remove warning producing call to "default" background color
60 ;; - Add a color update for mm-uu-extract
61
62 ;;;; Changes since 1.0.5:
63 ;; - Add a few colors for helm (the defaults did not work well with this theme)
64
65 ;;;; Changes since 1.0.4:
66 ;; - Don't circumvent normal autoloads functionality, use the comment load method
67
68 ;;;; Changes since 1.0.3:
69 ;; - Manually include an autoloads file to make sure
70 ;; custom-theme-load-path is filled out
71 ;; - Update description to make mention of (load-theme 'ahungry) for new users
72
73 ;;; Code:
74
75 (deftheme ahungry
76 "Ahungry Theme")
77
78 (let ((mainbg (when (display-graphic-p) "#222222")));; "default")))
79 (custom-theme-set-faces
80 'ahungry ;; This is the theme name
81 `(default ((t (:foreground "#ffffff" :background ,mainbg
82 :family "Terminus" :foundry "xos4"
83 :slant normal :weight normal
84 :height 100 :width normal))))
85 '(cursor ((t (:background "#fce94f" :foreground "#ffffff"))))
86 '(highlight ((t (:background "brown4" :foreground nil))))
87 '(border ((t (:background "#888a85"))))
88 '(fringe ((t (:background "#333333"))))
89 '(mode-line ((t (:foreground "#0022ff" :bold t :background "#77ff00"
90 :box (:line-width 1 :color nil :style released-button)))))
91 '(mode-line-inactive ((t (:foreground "#444444" :background "#66ff33"))))
92 '(mode-line-buffer-id ((t (:bold t :foreground "#ffffff" :background "#0055ff"))))
93 '(powerline-active1 ((t (:foreground "#ffffff" :background "#222222"))))
94 '(powerline-active2 ((t (:foreground "#ffffff" :background "#77ff00"))))
95 '(powerline-inactive1 ((t (:foreground "#ffffff" :background "#555555"))))
96 '(powerline-inactive2 ((t (:foreground "#ffffff" :background "#66ff33"))))
97 '(spaceline-flycheck-error ((t (:foreground "#ff0066" :background "#333333"))))
98 '(spaceline-flycheck-info ((t (:foreground "#ffaa00" :background "#333333"))))
99 '(spaceline-flycheck-warning ((t (:foreground "#ffaa00" :background "#333333"))))
100 '(region ((t (:background "#444444"))))
101 '(link ((t (:underline t :foreground "#33ff99"))))
102 '(custom-link ((t (:inherit 'link))))
103 '(match ((t (:bold t :background "#e9b96e" :foreground "#2e3436"))))
104 '(tool-tips ((t (:inherit 'variable-pitch :foreground "black" :background "#ffff33"))))
105 '(tooltip ((t (:inherit 'variable-pitch :foreground "black" :background "#ffff33"))))
106 '(bold ((t (:bold t :underline nil :background nil))))
107 '(italic ((t (:italic t :underline nil :background nil))))
108 '(font-lock-builtin-face ((t (:foreground "#0055ff"))))
109 '(font-lock-comment-face ((t (:foreground "#888a85" :bold nil :italic t))))
110 '(font-lock-constant-face ((t (:foreground "#fff900"))))
111 '(font-lock-doc-face ((t (:foreground "#777700" :bold t :italic t))))
112 '(font-lock-keyword-face ((t (:foreground "#3cff00" :bold t))))
113 '(font-lock-string-face ((t (:foreground "#ff0077" :italic nil :bold nil))))
114 '(font-lock-type-face ((t (:foreground "#deff00" :bold t))))
115 '(font-lock-variable-name-face ((t (:foreground "#0033ff" :bold t))))
116 '(font-lock-warning-face ((t (:bold t :foreground "#ff0000"))))
117 '(font-lock-function-name-face ((t (:foreground "#ffee00" :bold t))))
118 '(comint-highlight-input ((t (:italic t :bold t))))
119 '(comint-highlight-prompt ((t (:foreground "#33cc33"))))
120 '(diff-header ((t (:background "#444444"))))
121 '(diff-index ((t (:foreground "#ffff00" :bold t))))
122 '(diff-file-header ((t (:foreground "#aaaaaa" :bold t))))
123 '(diff-hunk-header ((t (:foreground "#ffff00"))))
124 '(diff-added ((t (:background "default" :foreground "#00ff00" :weight normal))))
125 '(diff-removed ((t (:background "default" :foreground "#ff0000" :weight normal))))
126 '(diff-context ((t (:foreground "#777777"))))
127 '(diff-refine-change ((t (:bold t :background "#444444"))))
128 '(isearch ((t (:background "#ff6600" :foreground "#333333"))))
129 '(isearch-lazy-highlight-face ((t (:foreground "#2e3436" :background "#ff6600"))))
130 '(show-paren-match-face ((t (:background "#ff6600" :foreground "#2e3436"))))
131 '(show-paren-mismatch-face ((t (:background "#999999" :foreground "#ff6600"))))
132 '(info-xref ((t (:foreground "#33ffbb"))))
133 '(info-xref-visited ((t (:foreground "#999999"))))
134 '(diary ((t (:bold t :foreground "#ff0000"))))
135 '(message-cited-text ((t (:foreground "#ffc800"))))
136 '(gnus-cite-1 ((t (:foreground "#999999"))))
137 '(gnus-cite-2 ((t (:foreground "#cba559"))))
138 '(gnus-cite-3 ((t (:foreground "#83ae92"))))
139 '(gnus-cite-4 ((t (:foreground "#6898a7"))))
140 '(gnus-cite-face-1 ((t (:foreground "#999999"))))
141 '(gnus-cite-face-2 ((t (:foreground "#cba559"))))
142 '(gnus-cite-face-3 ((t (:foreground "#83ae92"))))
143 '(gnus-cite-face-4 ((t (:foreground "#6898a7"))))
144 '(gnus-group-mail-1-empty ((t (:foreground "#009955"))))
145 '(gnus-group-mail-1 ((t (:bold t :foreground "#ff9900"))))
146 '(gnus-group-mail-2-empty ((t (:foreground "#009955"))))
147 '(gnus-group-mail-2 ((t (:bold t :foreground "#ffaa00"))))
148 '(gnus-group-mail-3-empty ((t (:foreground "#009955"))))
149 '(gnus-group-mail-3 ((t (:bold t :foreground "#ffcc00"))))
150 '(gnus-group-mail-low-empty ((t (:foreground "#009955"))))
151 '(gnus-group-mail-low ((t (:bold t :foreground "#005fff"))))
152 '(gnus-group-news-1-empty ((t (:foreground "#009955"))))
153 '(gnus-group-news-1 ((t (:bold t :foreground "#ff9900"))))
154 '(gnus-group-news-2-empty ((t (:foreground "#009955"))))
155 '(gnus-group-news-2 ((t (:bold t :foreground "#ffaa00"))))
156 '(gnus-group-news-3-empty ((t (:foreground "#009955"))))
157 '(gnus-group-news-3 ((t (:bold t :foreground "#ffcc00"))))
158 '(gnus-group-news-low-empty ((t (:foreground "#009955"))))
159 '(gnus-group-news-low ((t (:bold t :foreground "#005fff"))))
160 '(gnus-header-name ((t (:bold t :foreground "#33ffbb"))))
161 '(gnus-header-from ((t (:bold t :foreground "#ffc800"))))
162 '(gnus-header-subject ((t (:foreground "#ffc800"))))
163 '(gnus-header-content ((t (:italic t :foreground "#33cc33"))))
164 '(gnus-header-newsgroups ((t (:italic t :bold t :foreground "#0088ff"))))
165 '(gnus-signature ((t (:italic t :foreground "#666666"))))
166 '(gnus-summary-cancelled ((t (:background "#222222" :foreground "#ffff00"))))
167 '(gnus-summary-high-ancient ((t (:bold t :foreground "#0099ff"))))
168 '(gnus-summary-high-read ((t (:bold t :foreground "#33ff99"))))
169 '(gnus-summary-high-ticked ((t (:bold t :foreground "#f68585"))))
170 '(gnus-summary-high-unread ((t (:bold t :foreground "#ffffff"))))
171 '(gnus-summary-low-ancient ((t (:italic t :foreground "#33ff99"))))
172 '(gnus-summary-low-read ((t (:italic t :foreground "#0099ff"))))
173 '(gnus-summary-low-ticked ((t (:italic t :foreground "#ff3333"))))
174 '(gnus-summary-low-unread ((t (:italic t :foreground "#ffffff"))))
175 '(gnus-summary-normal-ancient ((t (:foreground "#0099ff"))))
176 '(gnus-summary-normal-read ((t (:foreground "#33ff99"))))
177 '(gnus-summary-normal-ticked ((t (:foreground "#ff0000"))))
178 '(gnus-summary-normal-unread ((t (:foreground "#ffffff"))))
179 '(gnus-summary-selected ((t (:background "brown4" :foreground "#ffffff"))))
180 '(message-header-name ((t (:foreground "#f68585"))))
181 '(message-header-newsgroups ((t (:italic t :bold t :foreground "#0088ff"))))
182 '(message-header-other ((t (:foreground "#0088ff"))))
183 '(message-header-xheader ((t (:foreground "#0088ff"))))
184 '(message-header-subject ((t (:foreground "#ffffff"))))
185 '(message-header-to ((t (:foreground "#ffffff"))))
186 '(message-header-cc ((t (:foreground "#ffffff"))))
187 '(mm-uu-extract ((t (:foreground "#0066ff"))))
188 '(org-hide ((t (:foreground "#222222"))))
189 '(org-level-1 ((t (:bold t :foreground "#4477ff" :height 1.4))))
190 '(org-level-2 ((t (:bold nil :foreground "#ffc800" :height 1.1))))
191 '(org-level-3 ((t (:bold t :foreground "#00aa33" :height 1.0))))
192 '(org-level-4 ((t (:bold nil :foreground "#f68585" :height 1.0))))
193 '(org-date ((t (:underline t :foreground "#ff0066"))))
194 '(org-footnote ((t (:underline t :foreground "#ff0066"))))
195 '(org-link ((t (:foreground "skyblue2" :background "#2e3436"))))
196 '(org-special-keyword ((t (:foreground "#cc0033"))))
197 '(org-verbatim ((t (:foreground "#cc6600" :underline t :slant italic))))
198 '(org-block ((t (:foreground "#999999"))))
199 '(org-quote ((t (:inherit org-block :bold t :slant italic))))
200 '(org-verse ((t (:inherit org-block :bold t :slant italic))))
201 '(org-table ((t (:foreground "#0055ff"))))
202 '(org-todo ((t (:bold t :foreground "#ff0099"))))
203 '(org-done ((t (:bold t :foreground "#00cc33"))))
204 '(org-agenda-structure ((t (:weight bold :foreground "#f68585"))))
205 '(org-agenda-date ((t (:foreground "#00ff55"))))
206 '(org-agenda-date-weekend ((t (:weight normal :foreground "#005fff"))))
207 '(org-agenda-date-today ((t (:weight bold :foreground "#ffc800"))))
208 '(org-agenda-done ((t (:weight normal :foreground "#00aa33"))))
209 '(org-block-begin-line ((t (:foreground "#bbbbbb" :background "#333333"))))
210 '(org-block-background ((t (:background "#333333"))))
211 '(org-block-end-line ((t (:foreground "#bbbbbb" :background "#333333"))))
212 '(org-document-title ((t (:weight bold :foreground "#0077cc"))))
213 '(org-document-info ((t (:weight normal :foreground "#0077cc"))))
214 '(org-document-info-keyword ((t (:weight normal :foreground "#aaaaaa"))))
215 '(org-warning ((t (:weight normal :foreground "#ee0033"))))
216 '(magit-hash ((t (:foreground "#6699aa"))))
217 '(magit-branch-local ((t (:foreground "#0066ff"))))
218 '(magit-branch-remote ((t (:foreground "#ffcc44"))))
219 '(magit-diffstat-added ((t (:foreground "#00ff66"))))
220 '(magit-diff-added-highlight ((t (:foreground "#33ff00" :weight normal))))
221 '(magit-diff-added ((t (:foreground "#44aa00" :weight normal))))
222 '(magit-diff-removed-highlight ((t (:foreground "#ff0033" :weight normal))))
223 '(magit-diff-removed ((t (:foreground "#aa0044" :weight normal))))
224 '(magit-diff-hunk-heading ((t (:foreground "#aaaa00"))))
225 '(magit-diff-hunk-heading-highlight ((t (:foreground "#ffff00"))))
226 '(magit-diffstat-removed ((t (:foreground "#ff0066"))))
227 '(magit-diff-context-highlight ((t (:foreground "#ffffff"))))
228 '(magit-section-heading ((t (:foreground "#ff0066"))))
229 '(magit-section-highlight ((t (:weight bold))));;:foreground "#ffffff"))))
230 '(minibuffer-prompt ((t (:foreground "#0055ff" :bold t))))
231 '(web-mode-html-tag-bracket-face ((t (:foreground "#666666"))))
232 '(helm-selection ((t (:foreground "#ff0099" :italic t :bold t :background "#f2e997"))))
233 '(helm-match ((t (:foreground "gold1"))))
234 '(helm-visible-mark ((t (:background "#f2e997" :foreground "#ff0099" :bold nil :italic nil))))
235 '(erc-nick-default-face ((t (:foreground "#ff0099"))))
236 '(erc-current-nick-face ((t (:foreground "#0099ff"))))
237 '(erc-input-face ((t (:foreground "#0099ff"))))
238 '(erc-prompt-face ((t (:background nil :foreground "#666666" :bold t :italic t))))
239 '(erc-timestamp-face ((t (:background nil :foreground "#666666" :bold nil :italic t))))
240 '(jabber-chat-prompt-foreign ((t (:foreground "#ff0099"))))
241 '(jabber-chat-prompt-local ((t (:foreground "#0099ff"))))
242 '(jabber-rare-time-face ((t (:foreground "#666666" :bold nil :italic t))))
243 )
244 (custom-theme-set-variables
245 'ahungry
246 '(red "#ffffff"))
247 )
248
249 ;;;###autoload
250 (when (and load-file-name (boundp 'custom-theme-load-path))
251 (add-to-list
252 'custom-theme-load-path
253 (file-name-as-directory (file-name-directory load-file-name))))
254
255 (provide-theme 'ahungry)
256
257 ;;; ahungry-theme.el ends here