Created
August 28, 2013 21:55
-
-
Save RaD/6371828 to your computer and use it in GitHub Desktop.
Sublime Monokai Theme
I just have fixed color for regions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; monokai-theme.el --- REQUIRES EMACS 24: Monokai Color Theme for Emacs. | |
;; Copyright (C) 2012 Lorenzo Villani. | |
;; | |
;; Author: Lorenzo Villani <[email protected]> | |
;; URL: https://github.com/lvillani/el-monokai-theme | |
;; Version: 0.0.10 | |
;; | |
;; 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, version 3 of the License. | |
;; | |
;; 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. | |
(unless (>= 24 emacs-major-version) | |
(error "monokai-theme requires Emacs 24 or later.")) | |
(deftheme monokai | |
"Monokai color theme") | |
(let ((monokai-blue-light "#89BDFF") | |
(monokai-gray "#595959") | |
(monokai-gray-darker "#383830") | |
(monokai-gray-darkest "#141411") | |
(monokai-gray-lightest "#595959") | |
(monokai-gray-light "#E6E6E6") | |
(monokai-green "#A6E22A") | |
(monokai-green-light "#A6E22E") | |
(monokai-grey-dark "#272822") | |
(monokai-magenta "#F92672") | |
(monokai-purple "#AE81FF") | |
(monokai-purple-light "#FD5FF1") | |
(monokai-yellow "#E6DB74") | |
(monokai-yellow-dark "#75715E") | |
(monokai-yellow-light "#F8F8F2")) | |
(custom-theme-set-faces | |
'monokai | |
;; Frame | |
`(default ((t (:foreground ,monokai-yellow-light :background ,monokai-grey-dark)))) | |
`(cursor ((t (:foreground ,monokai-magenta)))) | |
`(hl-line ((t (:background ,monokai-gray-darkest)))) | |
`(minibuffer-prompt ((t (:foreground ,monokai-yellow-dark)))) | |
`(modeline ((t (:background ,monokai-gray-lightest :foreground ,monokai-gray-light)))) | |
`(region ((t (:background ,monokai-gray)))) | |
`(show-paren-match-face ((t (:background ,monokai-gray-lightest)))) | |
;; Main | |
`(font-lock-builtin-face ((t (:foreground ,monokai-green)))) | |
`(font-lock-comment-face ((t (:foreground ,monokai-yellow-dark)))) | |
`(font-lock-constant-face ((t (:foreground ,monokai-purple)))) | |
`(font-lock-doc-string-face ((t (:foreground ,monokai-yellow)))) | |
`(font-lock-function-name-face ((t (:foreground ,monokai-green)))) | |
`(font-lock-keyword-face ((t (:foreground ,monokai-magenta)))) | |
`(font-lock-string-face ((t (:foreground ,monokai-yellow)))) | |
`(font-lock-type-face ((t (:foreground ,monokai-blue-light)))) | |
`(font-lock-variable-name-face ((t (:foreground ,monokai-magenta)))) | |
`(font-lock-warning-face ((t (:bold t :foreground ,monokai-purple-light)))) | |
;; CUA | |
`(cua-rectangle ((t (:background ,monokai-gray-darkest)))) | |
;; IDO | |
`(ido-first-match ((t (:foreground ,monokai-purple)))) | |
`(ido-only-match ((t (:foreground ,monokai-green)))) | |
`(ido-subdir ((t (:foreground ,monokai-blue-light)))) | |
;; ECB | |
`(ecb-default-highlight-face ((t (:foreground ,monokai-green)))) | |
;; Whitespace | |
`(whitespace-space ((t (:foreground ,monokai-gray)))) | |
;; Yasnippet | |
`(yas/field-highlight-face ((t (:background ,monokai-gray-darker)))))) | |
;;;###autoload | |
(when load-file-name | |
(add-to-list 'custom-theme-load-path | |
(file-name-as-directory (file-name-directory load-file-name))) | |
(when (not window-system) | |
(custom-set-faces '(default ((t (:background "nil"))))))) | |
(provide-theme 'monokai) | |
;; Local Variables: | |
;; no-byte-compile: t | |
;; End: | |
;;; monokai-theme.el ends here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment