thirdparty/color-theme-twilight.el
author Luke Hoersten <Luke@Hoersten.org>
Mon, 16 May 2011 20:50:55 -0500
changeset 37 3c51085957be
parent 35 4a9c440b6764
permissions -rw-r--r--
Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     1
;; Twilight Colour Theme for Emacs.
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     2
;;
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     3
;; Defines a colour scheme resembling that of the original TextMate Twilight colour theme.
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     4
;; To use add the following to your .emacs file (requires the color-theme package):
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     5
;;
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     6
;; (require 'color-theme)
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     7
;; (color-theme-initialize)
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     8
;; (load-file "~/.emacs.d/twilight-emacs/color-theme-twilight.el")
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     9
;;
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    10
;; And then (color-theme-twilight) to activate it.
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    11
;;
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    12
;; Several areas still require improvement such as recognition of code that ruby-mode doesn't
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    13
;; yet pick up (eg. parent classes), Rails/Merb keywords, or non Ruby code related areas
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    14
;; (eg. dired, HTML, etc). Please feel free to customize further and send in any improvements,
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    15
;; patches most welcome.
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    16
;;
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    17
;; MIT License Copyright (c) 2008 Marcus Crafter <[email protected]>
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    18
;; Credits due to the excellent TextMate Twilight theme
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    19
;;
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    20
;; Thanks to Travis Jeffery for ido-mode and fixes to the minibuffer-prompt to fit in with the rest of the theme
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    21
;;
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    22
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    23
(defun color-theme-twilight ()
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    24
  "Color theme by Marcus Crafter, based off the TextMate Twilight theme, created 2008-04-18"
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    25
  (interactive)
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    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
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    46
37
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    47
     ;; Enhanced-Ruby-Mode
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    48
     (ruby-string-delimiter-face  ((t (:foreground "#5A6340"))))
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    49
     (ruby-regexp-delimiter-face ((t (:foreground "orange"))))
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    50
     (ruby-heredoc-delimiter-face ((t (:foreground "#9B859D"))))
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    51
     (ruby-op-face ((t (:foreground "#CDA869"))))
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    52
24
96bd2f4c9962 Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents: 22
diff changeset
    53
     (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
    54
     (font-lock-regexp-grouping-construct ((t (:foreground "red"))))
22
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    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
     (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
    57
     (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
    58
     (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
    59
     (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
    60
     (mumamo-background-chunk-submode ((t (:background "#222222"))))
22
a7906973ceb5 Added some old files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    61
37
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    62
     (linum ((t (:background "#000000" :foreground "#5F5A60"))))
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    63
     (hl-line ((t (:background "#111111"))))
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    64
     (yas/field-highlight-face ((t (:background "#27292A"))))
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    65
24
96bd2f4c9962 Tweaked twilight theme to cleanup whitespace and change background color to black.
Luke Hoersten <Luke@Hoersten.org>
parents: 22
diff changeset
    66
     (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
    67
     (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
    68
     (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
    69
     (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
    70
     (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
    71
     (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
    72
     (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
    73
     (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
    74
     (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
    75
     (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
    76
     (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
    77
     (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
    78
     (underline ((nil (:underline nil))))
37
3c51085957be Added rainbow-delimiter (multi-colored parens) mode and updated twilight color theme.
Luke Hoersten <Luke@Hoersten.org>
parents: 35
diff changeset
    79
     (zmacs-region ((t (:background "snow" :foreground "blue")))))))