Sunburst for Emacs   no comments

Posted at 1:36 am in Wired

One of the reasons why I really like TextMate is its exquisite color themes. Nothing else come close. When I first switched to Emacs, I feel everything looks so dull and hard to read.

Half a year passed. I know I can no longer continue to stare on this dull and gloomy window. Fine, let’s port Sunburst to Emacs.

Sunburst-Emacs

Nice, isn’t it? Well, at least to my eyes. Here’s the code.

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
(defun color-theme-sunburst ()
  (interactive)
  (color-theme-install
   '(color-theme-sunburst
     ((background-color . "#000000")
      (foreground-color . "#FFFFFF")
      (cursor-color . "#DAD085"))
     (default ((t (nil))))
     (modeline ((t (:background "DarkRed" :foreground "white"
                                :box (:line-width 1 :style released-button)))))
     (font-lock-builtin-face ((t (:foreground "#3E87E3"))))
     (font-lock-comment-face ((t (:italic t :foreground "#AEAEAE"))))
     (font-lock-constant-face ((t (:foreground "#3387CC"))))
     (font-lock-doc-string-face ((t (:foreground "#65B042"))))
     (font-lock-string-face ((t (:foreground "#99CF50"))))
     (font-lock-function-name-face ((t (:foreground "#89BDFF"))))
     (font-lock-keyword-face ((t (:foreground "#E28964"))))
     (font-lock-type-face ((t (:underline t :foreground "#89BDFF"))))
     (font-lock-variable-name-face ((t (:foreground "#3E87E3"))))
     (font-lock-warning-face ((t (:bold t :foreground "#FD5FF1"
                                        :background "#562D56"))))
     (py-decorators-face ((t (:foreground "#3387CC"))))
     (py-builtins-face ((t (:foreground "#99CF50"))))
     (py-pseudo-keyword-face ((t (:foreground "#3E87E3"))))
     )
   ))

Put it somewhere in your load-path. I tried to make it look as close as possible, but this is the limit of where I can go for now. At least it’s usable!

Written by Sirn on August 18th, 2008

Tagged with , ,

Leave a Reply