author | Luke Hoersten <Luke@Hoersten.org> |
Sat, 06 Nov 2010 21:28:48 -0500 | |
changeset 28 | 8f4bd2f2cc06 |
parent 24 | 96bd2f4c9962 |
permissions | -rw-r--r-- |
22 | 1 |
;; Twilight Colour Theme for Emacs. |
2 |
;; |
|
3 |
;; Defines a colour scheme resembling that of the original TextMate Twilight colour theme. |
|
4 |
;; To use add the following to your .emacs file (requires the color-theme package): |
|
5 |
;; |
|
6 |
;; (require 'color-theme) |
|
7 |
;; (color-theme-initialize) |
|
8 |
;; (load-file "~/.emacs.d/twilight-emacs/color-theme-twilight.el") |
|
9 |
;; |
|
10 |
;; And then (color-theme-twilight) to activate it. |
|
11 |
;; |
|
12 |
;; Several areas still require improvement such as recognition of code that ruby-mode doesn't |
|
13 |
;; yet pick up (eg. parent classes), Rails/Merb keywords, or non Ruby code related areas |
|
14 |
;; (eg. dired, HTML, etc). Please feel free to customize further and send in any improvements, |
|
15 |
;; patches most welcome. |
|
16 |
;; |
|
17 |
;; MIT License Copyright (c) 2008 Marcus Crafter <[email protected]> |
|
18 |
;; Credits due to the excellent TextMate Twilight theme |
|
19 |
;; |
|
20 |
;; Thanks to Travis Jeffery for ido-mode and fixes to the minibuffer-prompt to fit in with the rest of the theme |
|
21 |
;; |
|
22 |
||
23 |
(defun color-theme-twilight () |
|
24 |
"Color theme by Marcus Crafter, based off the TextMate Twilight theme, created 2008-04-18" |
|
25 |
(interactive) |
|
26 |
(color-theme-install |
|
24
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
27 |
'(color-theme-twilight |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
28 |
((background-color . "#000000") |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
29 |
(background-mode . dark) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
30 |
(border-color . "black") |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
31 |
(cursor-color . "#A7A7A7") |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
32 |
(foreground-color . "#F8F8F8") |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
33 |
(mouse-color . "sienna1")) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
34 |
(default ((t (:background "#000000" :foreground "#CACACA")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
35 |
(blue ((t (:foreground "blue")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
36 |
(border-glyph ((t (nil)))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
37 |
(buffers-tab ((t (:background "#000000" :foreground "#CACACA")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
38 |
(font-lock-builtin-face ((t (:foreground "#CACACA")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
39 |
(font-lock-comment-face ((t (:foreground "#5F5A60")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
40 |
(font-lock-constant-face ((t (:foreground "#CF6A4C")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
41 |
(font-lock-doc-string-face ((t (:foreground "DarkOrange")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
42 |
(font-lock-function-name-face ((t (:foreground "#9B703F")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
43 |
(font-lock-keyword-face ((t (:foreground "#CDA869")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
44 |
(font-lock-preprocessor-face ((t (:foreground "Aquamarine")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
45 |
(font-lock-reference-face ((t (:foreground "SlateBlue")))) |
22 | 46 |
|
24
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
47 |
(font-lock-regexp-grouping-backslash ((t (:foreground "#E9C062")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
48 |
(font-lock-regexp-grouping-construct ((t (:foreground "red")))) |
22 | 49 |
|
24
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
50 |
(minibuffer-prompt ((t (:foreground "#5F5A60")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
51 |
(ido-subdir ((t (:foreground "#CF6A4C")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
52 |
(ido-first-match ((t (:foreground "#8F9D6A")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
53 |
(ido-only-match ((t (:foreground "#8F9D6A")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
54 |
(mumamo-background-chunk-submode ((t (:background "#222222")))) |
22 | 55 |
|
24
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
56 |
(font-lock-string-face ((t (:foreground "#8F9D6A")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
57 |
(font-lock-type-face ((t (:foreground "#9B703F")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
58 |
(font-lock-variable-name-face ((t (:foreground "#7587A6")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
59 |
(font-lock-warning-face ((t (:background "#EE799F" :foreground "red")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
60 |
(gui-element ((t (:background "#D4D0C8" :foreground "black")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
61 |
(region ((t (:background "#27292A")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
62 |
(mode-line ((t (:background "grey75" :foreground "black")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
63 |
(highlight ((t (:background "#111111")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
64 |
(highline-face ((t (:background "SeaGreen")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
65 |
(left-margin ((t (nil)))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
66 |
(text-cursor ((t (:background "yellow" :foreground "black")))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
67 |
(toolbar ((t (nil)))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
68 |
(underline ((nil (:underline nil)))) |
96bd2f4c9962
Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents:
22
diff
changeset
|
69 |
(zmacs-region ((t (:background "snow" :foreground "blue"))))))) |