-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathir-black-theme.el
153 lines (129 loc) · 6.2 KB
/
ir-black-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
;;; ir-black-theme.el --- Port of ir-black theme
;; Copyright (C) 2012 Jon-Michael Deldin
;; Author: Jon-Michael Deldin <dev@jmdeldin.com>
;; Keywords: faces
;; Compatibility: 24
;; Version: 1.0.1
;; 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/>.
;;; Commentary:
;; This is an Emacs 24 port of Todd Werth's IR Black theme available at URL
;; `http://blog.toddwerth.com/entries/8'. It still needs font-locking for
;; operators, numbers, and regular expressions, and it could definitely use
;; some cleaning up. Improvements are welcome!
;;
;; To use this theme, download it to ~/.emacs.d/themes. In your `.emacs' or
;; `init.el', add this line:
;;
;; (add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
;;
;; Once you have reloaded your configuration (`eval-buffer'), do `M-x
;; load-theme' and select "ir-black".
;;; Credits:
;; Thanks to Bozhidar Batsov for pointers and the autoloader from his
;; solarized theme at URL
;; `https://github.com/bbatsov/solarized-emacs/blob/master/solarized-theme.el'.
;;; Code:
(deftheme ir-black "Port of ir-black theme")
(let ((*background-color* "#000000")
(*brown* "#E64")
(*comments* "#7C7C7C")
(*constant* "#99CC99")
(*current-line* "#151515")
(*cursor-underscore* "#FFFAAA")
(*keywords* "#96CBFE")
(*light-purple* "#FFCCFF")
(*line-number* "#3D3D3D")
(*method-declaration* "#FFD2A7")
(*mode-line-bg* "#202020")
(*mode-line-fg* "#CCCCCC")
(*normal* "#F6F3E8")
(*number* "#FF73FD")
(*operators* "#FFFFB6")
(*red* "#FF6C60")
(*red-light* "#FFB6B0")
(*regexp* "#E9C")
(*regexp-alternate* "#FF0")
(*regexp-alternate-2* "#B18A3D")
(*search-selection* "#2F2F00")
(*string* "#A8FF60")
(*string-inner* "#00A0A0")
(*variable* "#C6C5FE")
(*visual-selection* "#262D51"))
(custom-theme-set-faces
'ir-black
`(bold ((t (:bold t))))
`(button ((t (:foreground, *keywords* :underline t))))
`(default ((t (:background, *background-color* :foreground, *normal*))))
`(escape-glyph ((t (:foreground, *string-inner*))))
`(header-line ((t (:background, *mode-line-bg* :foreground, *normal*)))) ;; info header
`(highlight ((t (:background, *current-line*))))
`(highlight-face ((t (:background, *current-line*))))
`(hl-line ((t (:background, *current-line* :underline t))))
`(info-xref ((t (:foreground, *keywords* :underline t))))
`(region ((t (:background, *visual-selection*))))
`(underline ((nil (:underline t))))
;; font-lock
`(font-lock-builtin-face ((t (:foreground, *operators*))))
`(font-lock-comment-delimiter-face ((t (:foreground, *comments*))))
`(font-lock-comment-face ((t (:foreground, *comments*))))
`(font-lock-constant-face ((t (:foreground, *constant*))))
`(font-lock-doc-face ((t (:foreground, *string*))))
`(font-lock-doc-string-face ((t (:foreground, *string*))))
`(font-lock-function-name-face ((t (:foreground, *method-declaration*))))
`(font-lock-keyword-face ((t (:foreground, *keywords*))))
`(font-lock-negation-char-face ((t (:foreground, *red*))))
`(font-lock-number-face ((t (:foreground, *number*))))
`(font-lock-preprocessor-face ((t (:foreground, *keywords*))))
`(font-lock-reference-face ((t (:foreground, *constant*))))
`(font-lock-regexp-grouping-backslash ((t (:foreground, *regexp*))))
`(font-lock-regexp-grouping-construct ((t (:foreground, *regexp*))))
`(font-lock-string-face ((t (:foreground, *string*))))
`(font-lock-type-face ((t (:foreground, *operators*))))
`(font-lock-variable-name-face ((t (:foreground, *variable*))))
`(font-lock-warning-face ((t (:foreground, *red*))))
;; GUI
`(fringe ((t (:background, *background-color*))))
`(linum ((t (:background, *line-number*))))
`(minibuffer-prompt ((t (:foreground, *variable*))))
`(mode-line ((t (:background, *mode-line-bg* :foreground, *mode-line-fg*))))
`(mode-line-inactive ((t (:background, *mode-line-bg* :foreground, *background-color*))))
`(cursor ((t (:background, *cursor-underscore*))))
`(text-cursor ((t (:background, *cursor-underscore*))))
`(vertical-border ((t (:foreground, *background-color*)))) ;; between splits
;; show-paren
`(show-paren-mismatch ((t (:background, *red* :foreground, *normal* :weight bold))))
`(show-paren-match ((t (:background, *keywords* :foreground, *normal* :weight bold))))
;; search
`(isearch ((t (:background, *regexp-alternate* :foreground, *search-selection*))))
`(isearch-fail ((t (:background, *red*))))
`(lazy-highlight ((t (:background, *operators* :foreground, *search-selection*))))
;; magit
`(magit-diff-add ((t (:foreground, *string*))))
`(magit-diff-del ((t (:foreground, *red*))))
;; org-mode
`(org-date ((t (:foreground, *light-purple* :underline t))))
`(org-level-1 ((t (:foreground, *string*))))
`(org-special-keyword ((t (:foreground, *variable*))))
`(org-link ((t (:foreground, *keywords* :underline t))))
`(org-checkbox ((t (:foreground, *keywords* :background, *background-color* :bold t))))
`(org-clock-overlay ((t (:foreground, *mode-line-bg* :background, *string*))))
;; starter kit
`(esk-paren-face ((t (:foreground, *string-inner*))))))
;;;###autoload
(when (and (boundp 'custom-theme-load-path) load-file-name)
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
;; Local Variables:
;; no-byte-compile: t
;; End:
(provide-theme 'ir-black)
;;; ir-black-theme.el ends here