-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcolor-theme-almost-monokai.el
73 lines (65 loc) · 2.77 KB
/
color-theme-almost-monokai.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
;;; Almost Monokai: color-theme-almost-monokai.el
;;; A beautiful, fruity and calm emacs color theme.
;; Author: Prateek Saxena <[email protected]>
;; Author: Pratul Kalia <[email protected]>
;;
;; Based on the Monokai TextMate theme
;; Author: Wimer Hazenberg <http://www.monokai.nl>
;; Depends: color-theme
;; This file 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 2, or (at your option)
;; any later version.
;; This file 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 GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
; Color theme support is required.
(require 'color-theme)
; plist-to-alist removed in emacs 24, re-add it
(if (version<= emacs-version "24")
() ; do nothing for >= version 24
(defun plist-to-alist (the-plist)
(defun get-tuple-from-plist (the-plist)
(when the-plist
(cons (car the-plist) (cadr the-plist))))
(let ((alist '()))
(while the-plist
(add-to-list 'alist (get-tuple-from-plist the-plist))
(setq the-plist (cddr the-plist)))
alist))
)
; Code start.
(defun color-theme-almost-monokai ()
(interactive)
(color-theme-install
'(color-theme-almost-monokai
((background-color . "#272821")
(foreground-color . "#F8F8F2")
(cursor-color . "#DAD085"))
(default ((t (nil))))
(modeline ((t (:background "white" :foreground "black" :box (:line-width 1 :style released-button)))))
(font-lock-builtin-face ((t (:foreground "#A6E22A"))))
(font-lock-comment-face ((t (:italic t :foreground "#75715D"))))
(font-lock-constant-face ((t (:foreground "#A6E22A"))))
(font-lock-doc-string-face ((t (:foreground "#65B042"))))
(font-lock-string-face ((t (:foreground "#DFD874"))))
(font-lock-function-name-face ((t (:foreground "#F1266F" :italic t))))
(font-lock-keyword-face ((t (:foreground "#66D9EF"))))
(font-lock-type-face ((t (:underline t :foreground "#89BDFF"))))
(font-lock-variable-name-face ((t (:foreground "#A6E22A"))))
(font-lock-warning-face ((t (:bold t :foreground "#FD5FF1"))))
(highlight-80+ ((t (:background "#D62E00"))))
(hl-line ((t (:background "#1A1A1A"))))
(region ((t (:background "#6DC5F1"))))
(ido-subdir ((t (:foreground "#F1266F"))))
)
)
)
(provide 'color-theme-almost-monokai)
;---------------
; Code end.