-
Notifications
You must be signed in to change notification settings - Fork 2
/
professional-theme.el
147 lines (126 loc) · 5.53 KB
/
professional-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
;;; professional-theme.el --- Emacs port of Vim's professional theme
;;
;; Filename: professional-theme.el
;; Description: Emacs port of Vim's professional theme
;; Author: Juanjo Alvarez <[email protected]>
;; Created: Thu Sep 10 01:04:58 2013 (-0400)
;; Version: 20140914.1533
;; X-Original-Version: 0.0.3
;; URL: https://github.com/juanjux/emacs-professional-theme
;; Keywords: theme, light, professional
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Commentary:
;;
;; Port of Narayanan Lyer's Vim professional Theme.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; 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, 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; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
;; Floor, Boston, MA 02110-1301, USA.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Code:
(deftheme professional "port of Vim's professional theme")
(let* ((pro/bgyellow "#FFFFDD")
(pro/fg "#000000")
(pro/blood "#993300")
(pro/blue "#0000C8")
(pro/lightblue "#5180B3")
(pro/darkgreen "#006600")
(pro/darkred "#660000")
(pro/darkpurple "#6600FF")
(pro/green "#339900")
(pro/olivegreen "#666633")
(pro/orange "#FF8512")
(pro/pastelgreen "#006666")
(pro/pastelred "#FF8080")
(pro/pastelred2 "#FF8088")
(pro/pink "#C000C8")
(pro/purple "#9933FF")
(pro/red "#990000")
(pro/white "#FFFFFF")
(pro/brightred "#FF0000")
(pro/darkgray "#757575")
(pro/mediumgray "#C0C0C0")
(pro/lightgray "#E8E8E8")
(pro/brightyellow "#FFFF00"))
;; Set faces
(custom-theme-set-faces
`professional
`(default ((t (:foreground ,pro/fg :background ,pro/bgyellow))))
`(cursor ((t (:foreground ,pro/bgyellow :background ,pro/pastelgreen))))
`(region ((t (:background "grey"))))
`(font-lock-builtin-face ((t (:foreground ,pro/blue))))
`(font-lock-comment-face ((t (:foreground ,pro/lightblue))))
`(font-lock-comment-delimiter-face ((t (:foreground ,pro/lightblue))))
`(font-lock-function-name-face ((t (:foreground ,pro/darkpurple))))
`(font-lock-keyword-face ((t (:foreground ,pro/blue))))
`(font-lock-string-face ((t (:foreground ,pro/darkgreen))))
`(font-lock-preprocessor-face ((t (:foreground ,pro/blood))))
`(font-lock-type-face ((t (:foreground ,pro/darkred))))
`(font-lock-constant-face ((t (:foreground ,pro/purple))))
`(font-lock-warning-face ((t (:foreground "red" :bold t))))
`(font-lock-variable-name-face ((t (:foreground ,pro/fg))))
`(font-lock-doc-face ((t (:foreground ,pro/olivegreen))))
;; mode line
`(linum ((t (:background ,pro/pastelgreen :foreground ,pro/bgyellow))))
;; hl-line
`(hl-line ((t (:background ,pro/lightgray))))
;; indent-guide-face
`(indent-guide-face ((t (:foreground ,pro/mediumgray))))
;; powerline
`(powerline-active1 ((t (:foreground ,pro/bgyellow :background ,pro/fg))))
`(powerline-active2 ((t (:foreground ,pro/bgyellow :background ,pro/pastelgreen))))
`(powerline-inactive1 ((t (:foreground ,pro/bgyellow :background ,pro/fg))))
`(powerline-inactive2 ((t (:foreground ,pro/bgyellow :background ,pro/darkgray))))
`(powerline-evil-insert-face ((t (:foreground ,pro/bgyellow :background ,pro/brightred))))
`(powerline-evil-normal-face ((t (:foreground ,pro/bgyellow :background ,pro/pastelgreen))))
;; search
`(isearch ((t (:foreground ,pro/fg :background ,pro/brightyellow))))
`(lazy-highlight ((t (:foreground ,pro/fg :background ,pro/orange))))
`(compilation-error ((t (:foreground ,pro/brightred :bold t))))
`(compilation-warning ((t (:foreground ,pro/orange :bold t))))
`(compilation-info ((t (:foreground ,pro/green :bold t))))
;;show paren
`(show-paren-match ((t (:foreground ,pro/fg :background ,pro/darkgray))))
`(show-paren-mismatch ((t (:inherit error))))
;; elscreen
`(elscreen-tab-other-screen-face ((t (:foreground ,pro/bgyellow :background ,pro/pastelgreen))))
;; error
`(error ((t (:foreground "red"))))
;; helm
`(helm-M-x-key ((t (:foreground ,pro/orange :underline nil))))
`(helm-header ((t (:foreground ,pro/bgyellow :background ,pro/fg))))
`(company-preview-common ((t (:inherit font-lock-comment-face))))
;; trailing whitespace
`(trailing-whitespace ((t (:background "white" :bold t)))))
(custom-theme-set-variables
'professional
`(ansi-color-names-vector
[,pro/fg ,pro/red ,pro/green ,pro/olivegreen ,pro/blue ,pro/purple ,pro/olivegreen ,pro/fg])))
;;;###autoload
(when load-file-name
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
;;;###autoload
(defun professional-theme()
"Apply the professional-theme."
(interactive)
(load-theme 'professional t))
(provide-theme 'professional)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; professional-theme.el ends here