├── README.md └── color-theme-twilight.el /README.md: -------------------------------------------------------------------------------- 1 | Twilight color theme for GNU Emacs inspired by TextMate. 2 | 3 | -------------------------------------------------------------------------------- /color-theme-twilight.el: -------------------------------------------------------------------------------- 1 | ;;; color-theme-twilight.el --- Twilight Color Theme for Emacs. 2 | 3 | ;; Copyright (C) 2008 Marcus Crafter 4 | 5 | ;; Author: Marcus Crafter 6 | ;; Adapted-By: Yesudeep Mangalapilly 7 | ;; Keywords: textmate twilight color theme 8 | ;; URL: https://github.com/crafterm/twilight-emacs 9 | ;; Version: 0.2 10 | ;; Package-Requires: ((color-theme "6.6.1")) 11 | 12 | ;; This file is NOT a part of GNU Emacs. 13 | 14 | ;;; License: 15 | 16 | ;; MIT License 17 | ;; ----------- 18 | ;; Permission is hereby granted, free of charge, to any person 19 | ;; obtaining a copy of this software and associated documentation 20 | ;; files (the "Software"), to deal in the Software without 21 | ;; restriction, including without limitation the rights to use, 22 | ;; copy, modify, merge, publish, distribute, sublicense, and/or 23 | ;; sell copies of the Software, and to permit persons to whom the 24 | ;; Software is furnished to do so, subject to the following 25 | ;; conditions: 26 | ;; 27 | ;; The above copyright notice and this permission notice shall 28 | ;; be included in all copies or substantial portions of the 29 | ;; Software. 30 | ;; 31 | ;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 32 | ;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 33 | ;; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 34 | ;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 35 | ;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 36 | ;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 37 | ;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 38 | ;; OTHER DEALINGS IN THE SOFTWARE. 39 | 40 | ;;; Usage: 41 | ;; 42 | ;; Defines a colour scheme resembling that of the original TextMate Twilight colour theme. 43 | ;; To use add the following to your .emacs file (requires the color-theme package): 44 | ;; 45 | ;; (require 'color-theme) 46 | ;; (color-theme-initialize) 47 | ;; (load-file "~/.emacs.d/twilight-emacs/color-theme-twilight.el") 48 | 49 | 50 | ;; TODO: Several areas still require improvement such as recognition of code that ruby-mode doesn't 51 | ;; yet pick up (eg. parent classes), Rails/Merb keywords, or non Ruby code related areas 52 | ;; (eg. dired, HTML, etc). Please feel free to customize further and send in any improvements, 53 | ;; patches most welcome. 54 | ;; 55 | ;; Credits due to the excellent TextMate Twilight theme 56 | ;; 57 | ;; Thanks to Travis Jeffery for ido-mode and fixes to the minibuffer-prompt to fit in with the rest of the theme 58 | 59 | ;;; Code: 60 | 61 | (eval-when-compile 62 | (require 'color-theme)) 63 | 64 | 65 | (defun color-theme-twilight () 66 | "TextMate Twilight theme for GNU Emacs." 67 | (interactive) 68 | (color-theme-install 69 | '(color-theme-twilight 70 | ((background-color . "#141414") 71 | (background-mode . dark) 72 | (border-color . "black") 73 | (cursor-color . "#DDDD00") 74 | (foreground-color . "#F8F8F8") 75 | (mouse-color . "sienna1")) 76 | (default ((t (:background "#141414" :foreground "#CACACA")))) 77 | (blue ((t (:foreground "blue")))) 78 | (border-glyph ((t (nil)))) 79 | (buffers-tab ((t (:background "#141414" :foreground "#CACACA")))) 80 | (font-lock-builtin-face ((t (:foreground "#CACACA")))) 81 | (font-lock-comment-face ((t (:foreground "#5F5A60")))) 82 | (font-lock-constant-face ((t (:foreground "#CF6A4C")))) 83 | (font-lock-doc-string-face ((t (:foreground "DarkOrange")))) 84 | (font-lock-function-name-face ((t (:foreground "#9B703F")))) 85 | (font-lock-keyword-face ((t (:foreground "#CDA869")))) 86 | (font-lock-preprocessor-face ((t (:foreground "Aquamarine")))) 87 | (font-lock-reference-face ((t (:foreground "SlateBlue")))) 88 | 89 | ;; Enhanced-Ruby-Mode 90 | (ruby-string-delimiter-face ((t (:foreground "#5A6340")))) 91 | (ruby-regexp-delimiter-face ((t (:foreground "orange")))) 92 | (ruby-heredoc-delimiter-face ((t (:foreground "#9B859D")))) 93 | (ruby-op-face ((t (:foreground "#CDA869")))) 94 | 95 | (font-lock-regexp-grouping-backslash ((t (:foreground "#E9C062")))) 96 | (font-lock-regexp-grouping-construct ((t (:foreground "red")))) 97 | 98 | (minibuffer-prompt ((t (:foreground "#5F5A60")))) 99 | (ido-subdir ((t (:foreground "#CF6A4C")))) 100 | (ido-first-match ((t (:foreground "#8F9D6A")))) 101 | (ido-only-match ((t (:foreground "#8F9D6A")))) 102 | (mumamo-background-chunk-submode ((t (:background "#222222")))) 103 | 104 | (linum ((t (:background "#141314" :foreground "#2D2B2E")))) 105 | (hl-line ((t (:background "#212121")))) 106 | (region ((t (:background "#373446")))) 107 | (yas/field-highlight-face ((t (:background "#27292A")))) 108 | (mode-line ((t (:background "grey75" :foreground "black" :height 0.8)))) 109 | (mode-line-inactive ((t (:background "grey10" :foreground "grey40" :box (:line-width -1 :color "grey20") :height 0.8)))) 110 | 111 | (magit-item-highlight ((t (:background "#191930")))) 112 | (magit-diff-add ((((class color) (background dark)) (:foreground "green")))) 113 | (org-hide ((((background dark)) (:foreground "#141414")))) 114 | (outline-4 ((t (:foreground "#8F8A80")))) 115 | 116 | (diff-removed ((((class color) (background dark)) (:foreground "orange")))) 117 | (diff-added ((((class color) (background dark)) (:foreground "green")))) 118 | 119 | (font-lock-string-face ((t (:foreground "#8F9D6A")))) 120 | (font-lock-type-face ((t (:foreground "#9B703F")))) 121 | (font-lock-variable-name-face ((t (:foreground "#7587A6")))) 122 | (font-lock-warning-face ((t (:background "#EE799F" :foreground "red")))) 123 | (gui-element ((t (:background "#D4D0C8" :foreground "black")))) 124 | (region ((t (:background "#27292A")))) 125 | (highlight ((t (:background "#111111")))) 126 | (highline-face ((t (:background "SeaGreen")))) 127 | (left-margin ((t (nil)))) 128 | (text-cursor ((t (:background "yellow" :foreground "black")))) 129 | (toolbar ((t (nil)))) 130 | (underline ((nil (:underline nil)))) 131 | (zmacs-region ((t (:background "snow" :foreground "blue"))))))) 132 | 133 | (provide 'color-theme-twilight) 134 | 135 | ;;; color-theme-twilight.el ends here 136 | --------------------------------------------------------------------------------