Browse files

Add tomorrow-night.

  • Loading branch information...
1 parent 291d7ef commit 7ee2b170032e3c3451c93bb08c9382fe5747dd78 @Raynes committed May 15, 2012
View
3 .gitmodules
@@ -7,3 +7,6 @@
[submodule "non-elpa/markdown-mode"]
path = non-elpa/markdown-mode
url = http://jblevins.org/git/markdown-mode.git
+[submodule "non-elpa/js2-mode"]
+ path = non-elpa/js2-mode
+ url = https://github.com/mooz/js2-mode.git
View
28 init.el
@@ -59,7 +59,7 @@
;; If there is more than one, they won't work right.
'(browse-url-browser-function (quote browse-url-generic))
'(browse-url-generic-program "open")
- '(custom-safe-themes (quote ("6cfe5b2f818c7b52723f3e121d1157cf9d95ed8923dbc1b47f392da80ef7495d" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" default)))
+ '(custom-safe-themes (quote ("cfd71d55f448690641d6e8ca6438ab696bcaff3296905f95d91d4990166863d5" "ca2d69f5dd853dbf6fbcf5d0f1759ec357fda19c481915431015417ec9c1fbd8" "6cfe5b2f818c7b52723f3e121d1157cf9d95ed8923dbc1b47f392da80ef7495d" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" default)))
'(erc-modules (quote (completion log spelling track hl-nicks netsplit button match track readonly networks ring autojoin noncommands irccontrols move-to-prompt stamp menu list)))
'(erc-track-exclude-types (quote ("JOIN" "NICK" "PART" "QUIT" "MODE" "324" "329" "332" "333" "353" "477")))
'(erc-track-showcount nil)
@@ -70,6 +70,7 @@
'(ispell-dictionary nil)
'(ispell-local-dictionary nil)
'(ispell-program-name "/usr/local/bin/aspell")
+ '(js2-basic-offset 2)
'(mouse-autoselect-window t)
'(org-startup-indented t)
'(show-paren-mode t)
@@ -197,20 +198,13 @@
'((lambda (endp delimiter) nil)))
(paredit-mode 1))
-(add-to-list 'auto-mode-alist '("\\.json$" . js-mode))
-
-(eval-after-load 'js
- '(progn (define-key js-mode-map "{" 'paredit-open-curly)
- (define-key js-mode-map "}" 'paredit-close-curly-and-newline)
- (add-hook 'js-mode-hook 'esk-paredit-nonlisp)
- (setq js-indent-level 2)
- ;; fixes problem with pretty function font-lock
- (define-key js-mode-map (kbd ",") 'self-insert-command)
- (font-lock-add-keywords
- 'js-mode `(("\\(function *\\)("
- (0 (progn (compose-region (match-beginning 1)
- (match-end 1) "\u0192")
- nil)))))))
+(add-to-list 'load-path "~/.emacs.d/non-elpa/js2-mode")
+(autoload 'js2-mode "js2-mode" nil t)
+
+(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
+(add-to-list 'auto-mode-alist '("\\.json$" . js2-mode))
+
+(setq-default indent-tabs-mode nil)
;; Evil mode
(add-to-list 'load-path "~/.emacs.d/non-elpa/evil")
@@ -219,7 +213,9 @@
;; Theme
(add-to-list 'custom-theme-load-path "~/.emacs.d/non-elpa/emacs-color-theme-solarized")
-(load-theme 'solarized-dark t)
+(add-to-list 'custom-theme-load-path "~/.emacs.d/non-elpa/tomorrow-night")
+;(load-theme 'solarized-dark t)
+(load-theme 'tomorrow-night t)
;; Sane undo and redo
(global-undo-tree-mode)
1 non-elpa/js2-mode
@@ -0,0 +1 @@
+Subproject commit 39dd8a3a967ee9ea2188a36115b22ad052e97321
View
185 non-elpa/tomorrow-night/color-theme-tomorrow.el
@@ -0,0 +1,185 @@
+;;; color-theme-tomorrow.el --- GNU Emacs port of the Tomorrow Theme.
+
+;;; Commentary:
+;;
+;;; Tomorrow Theme
+;;
+;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
+;; Ported to GNU Emacs by Chris Charles
+
+(require 'color-theme)
+
+;;; Code:
+
+(defun color-theme-tomorrow-real (&optional variant)
+ "Enable the appropriate Tomorrow theme based on VARIANT.
+
+VARIANT can be 'night, 'night-eighties, 'night-blue or
+'night-bright. If VARIANT is not present, the light Tomorrow
+theme will be used."
+
+ (let ((background "#ffffff")
+ (current-line "#e9efff")
+ (selection "#c5cce9")
+ (foreground "#4d4d4c")
+ (comment "#8e908c")
+ (cursor "#aeafad")
+ (red "#c82829")
+ (orange "#f5871f")
+ (yellow "#eab700")
+ (green "#718c00")
+ (aqua "#3e999f")
+ (blue "#4271ae")
+ (purple "#8959a8"))
+
+ (cond ((eq variant 'night)
+ (setq background "#1d1f21"
+ current-line "#282a2e"
+ selection "#373b41"
+ foreground "#c5c8c6"
+ comment "#969896"
+ cursor "#aeafad"
+ red "#cc6666"
+ orange "#de935f"
+ yellow "#f0c674"
+ green "#b5bd68"
+ aqua "#8abeb7"
+ blue "#81a2be"
+ purple "#b294bb"))
+
+ ((eq variant 'night-eighties)
+ (setq background "#2d2d2d"
+ current-line "#393939"
+ selection "#515151"
+ foreground "#cccccc"
+ comment "#999999"
+ cursor "#cccccc"
+ red "#f2777a"
+ orange "#f99157"
+ yellow "#ffcc66"
+ green "#99cc99"
+ aqua "#009999"
+ blue "#99cccc"
+ purple "#cc99cc"))
+
+ ((eq variant 'night-blue)
+ (setq background "#002451"
+ current-line "#00346e"
+ selection "#003f8e"
+ foreground "#ffffff"
+ comment "#7285b7"
+ cursor "#ffffff"
+ red "#ff9da4"
+ orange "#ffc58f"
+ yellow "#ffeead"
+ green "#d1f1a9"
+ aqua "#99ffff"
+ blue "#bbdaff"
+ purple "#ebbbff"))
+
+ ((eq variant 'night-bright)
+ (setq background "#000000"
+ current-line "#2a2a2a"
+ selection "#424242"
+ foreground "#dedede"
+ comment "#969896"
+ cursor "#9f9f9f"
+ red "#d54e53"
+ orange "#e78c45"
+ yellow "#e7c547"
+ green "#b9ca4a"
+ aqua "#70c0b1"
+ blue "#7aa6da"
+ purple "#c397d8")))
+
+ (color-theme-install
+ `(color-theme-tomorrow-real
+ ((background . ,background)
+ (background-mode . dark)
+ (border-color . ,cursor)
+ (cursor-color . ,cursor)
+ (foreground-color . ,foreground))
+
+ ;; Built-in stuff (Emacs 23)
+ (default ((t (:background ,background :foreground ,foreground))))
+ (fringe ((t (:background ,current-line))))
+ (minibuffer-prompt ((t (:foreground ,blue))))
+ (mode-line ((t (:background ,current-line :foreground ,foreground))))
+ (region ((t (:background ,selection))))
+
+ ;; Font-lock stuff
+ (font-lock-comment-face ((t (:foreground ,comment))))
+ (font-lock-constant-face ((t (:foreground ,green))))
+ (font-lock-doc-string-face ((t (:foreground ,comment))))
+ (font-lock-function-name-face ((t (:foreground ,blue))))
+ (font-lock-keyword-face ((t (:foreground ,purple))))
+ (font-lock-string-face ((t (:foreground ,green))))
+ (font-lock-type-face ((t (:foreground ,yellow))))
+ (font-lock-variable-name-face ((t (:foreground ,red))))
+ (font-lock-warning-face ((t (:foreground ,red))))
+
+ ;; hl-line-mode
+ (hl-line ((t (:background ,current-line))))
+
+ ;; linum-mode
+ (linum ((t (:background ,current-line :foreground ,foreground))))
+
+ ;; org-mode
+ (org-date ((t (:foreground ,purple))))
+ (org-done ((t (:foreground ,green))))
+ (org-hide ((t (:foreground ,current-line))))
+ (org-link ((t (:foreground ,blue))))
+ (org-todo ((t (:foreground ,red))))
+
+ ;; show-paren-mode
+ (show-paren-match-face ((t (:background ,blue :foreground ,current-line))))
+ (show-paren-mismatch-face ((t (:background ,orange :foreground ,current-line))))))))
+
+(defun color-theme-tomorrow ()
+ "Base light Tomorrow theme."
+ (interactive)
+ (color-theme-tomorrow-real))
+(provide 'color-theme-tomorrow)
+
+(defun color-theme-tomorrow-night ()
+ "Dark Tomorrow theme."
+ (interactive)
+ (color-theme-tomorrow-real 'night))
+(provide 'color-theme-tomorrow-night)
+
+(defun color-theme-tomorrow-night-eighties ()
+ "Somewhat lighter dark Tomorrow theme."
+ (interactive)
+ (color-theme-tomorrow-real 'night-eighties))
+(provide 'color-theme-tomorrow-night-eighties)
+
+(defun color-theme-tomorrow-night-blue ()
+ "Dark Tomorrow theme with a blue background."
+ (interactive)
+ (color-theme-tomorrow-real 'night-blue))
+(provide 'color-theme-tomorrow-night-blue)
+
+(defun color-theme-tomorrow-night-bright ()
+ "Dark Tomorrow theme with a brighter, higher-contrast look."
+ (interactive)
+ (color-theme-tomorrow-real 'night-bright))
+(provide 'color-theme-tomorrow-night-bright)
+
+
+(add-to-list 'color-themes
+ '(color-theme-tomorrow
+ "Tomorrow" "Chris Kempson (ported by Chris Charles)"))
+(add-to-list 'color-themes
+ '(color-theme-tomorrow-night
+ "Tomorrow Night" "Chris Kempson (ported by Chris Charles)"))
+(add-to-list 'color-themes
+ '(color-theme-tomorrow-night-eighties
+ "Tomorrow Night Eighties" "Chris Kempson (ported by Chris Charles)"))
+(add-to-list 'color-themes
+ '(color-theme-tomorrow-night-blue
+ "Tomorrow Night Blue" "Chris Kempson (ported by Chris Charles)"))
+(add-to-list 'color-themes
+ '(color-theme-tomorrow-night-bright
+ "Tomorrow Night Bright" "Chris Kempson (ported by Chris Charles)"))
+
+;;; color-theme-tomorrow.el ends here
View
80 non-elpa/tomorrow-night/tomorrow-night-blue-theme.el
@@ -0,0 +1,80 @@
+;;; tomorrow-night-blue-theme.el --- custom theme for faces
+
+;;; Commentary:
+;;
+;;; Tomorrow Night Blue Theme
+;;
+;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
+;; Ported to GNU Emacs by Chris Charles
+;; Ported to GNU Emacs 24's built-in theme system by Jim Myhrberg (@jimeh)
+
+;;; Code:
+
+(deftheme tomorrow-night-blue
+ "A Pastel Coloured Theme")
+
+(let ((background "#002451")
+ (current-line "#00346e")
+ (selection "#003f8e")
+ (foreground "#ffffff")
+ (comment "#7285b7")
+ (cursor "#ffffff")
+ (red "#ff9da4")
+ (orange "#ffc58f")
+ (yellow "#ffeead")
+ (green "#d1f1a9")
+ (aqua "#99ffff")
+ (blue "#bbdaff")
+ (purple "#ebbbff"))
+
+ (custom-theme-set-faces
+ 'tomorrow-night-blue
+
+ ;; Built-in stuff (Emacs 23)
+ `(default ((t (:background ,background :foreground ,foreground))))
+ `(fringe ((t (:background ,current-line))))
+ `(minibuffer-prompt ((t (:foreground ,blue))))
+ `(mode-line ((t (:background ,current-line :foreground ,foreground))))
+ `(region ((t (:background ,selection))))
+
+ ;; Font-lock stuff
+ `(font-lock-comment-face ((t (:foreground ,comment))))
+ `(font-lock-constant-face ((t (:foreground ,green))))
+ `(font-lock-doc-string-face ((t (:foreground ,comment))))
+ `(font-lock-function-name-face ((t (:foreground ,blue))))
+ `(font-lock-keyword-face ((t (:foreground ,purple))))
+ `(font-lock-string-face ((t (:foreground ,green))))
+ `(font-lock-type-face ((t (:foreground ,yellow))))
+ `(font-lock-variable-name-face ((t (:foreground ,red))))
+ `(font-lock-warning-face ((t (:foreground ,red))))
+
+ ;; hl-line-mode
+ `(hl-line ((t (:background ,current-line))))
+
+ ;; linum-mode
+ `(linum ((t (:background ,current-line :foreground ,foreground))))
+
+ ;; org-mode
+ `(org-date ((t (:foreground ,purple))))
+ `(org-done ((t (:foreground ,green))))
+ `(org-hide ((t (:foreground ,current-line))))
+ `(org-link ((t (:foreground ,blue))))
+ `(org-todo ((t (:foreground ,red))))
+
+ ;; show-paren-mode
+ `(show-paren-match ((t (:background ,blue :foreground ,current-line))))
+ `(show-paren-mismatch ((t (:background ,orange :foreground ,current-line)))))
+
+ (custom-theme-set-variables
+ 'tomorrow-night-blue
+
+ `(ansi-color-names-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])
+ `(ansi-term-color-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [unspecified ,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])))
+
+(provide-theme 'tomorrow-night-blue)
+
+;;; tomorrow-night-blue-theme.el ends here
View
80 non-elpa/tomorrow-night/tomorrow-night-bright-theme.el
@@ -0,0 +1,80 @@
+;;; tomorrow-night-bright-theme.el --- custom theme for faces
+
+;;; Commentary:
+;;
+;;; Tomorrow Night Bright Theme
+;;
+;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
+;; Ported to GNU Emacs by Chris Charles
+;; Ported to GNU Emacs 24's built-in theme system by Jim Myhrberg (@jimeh)
+
+;;; Code:
+
+(deftheme tomorrow-night-bright
+ "A Pastel Coloured Theme")
+
+(let ((background "#000000")
+ (current-line "#2a2a2a")
+ (selection "#424242")
+ (foreground "#dedede")
+ (comment "#969896")
+ (cursor "#9f9f9f")
+ (red "#d54e53")
+ (orange "#e78c45")
+ (yellow "#e7c547")
+ (green "#b9ca4a")
+ (aqua "#70c0b1")
+ (blue "#7aa6da")
+ (purple "#c397d8"))
+
+ (custom-theme-set-faces
+ 'tomorrow-night-bright
+
+ ;; Built-in stuff (Emacs 23)
+ `(default ((t (:background ,background :foreground ,foreground))))
+ `(fringe ((t (:background ,current-line))))
+ `(minibuffer-prompt ((t (:foreground ,blue))))
+ `(mode-line ((t (:background ,current-line :foreground ,foreground))))
+ `(region ((t (:background ,selection))))
+
+ ;; Font-lock stuff
+ `(font-lock-comment-face ((t (:foreground ,comment))))
+ `(font-lock-constant-face ((t (:foreground ,green))))
+ `(font-lock-doc-string-face ((t (:foreground ,comment))))
+ `(font-lock-function-name-face ((t (:foreground ,blue))))
+ `(font-lock-keyword-face ((t (:foreground ,purple))))
+ `(font-lock-string-face ((t (:foreground ,green))))
+ `(font-lock-type-face ((t (:foreground ,yellow))))
+ `(font-lock-variable-name-face ((t (:foreground ,red))))
+ `(font-lock-warning-face ((t (:foreground ,red))))
+
+ ;; hl-line-mode
+ `(hl-line ((t (:background ,current-line))))
+
+ ;; linum-mode
+ `(linum ((t (:background ,current-line :foreground ,foreground))))
+
+ ;; org-mode
+ `(org-date ((t (:foreground ,purple))))
+ `(org-done ((t (:foreground ,green))))
+ `(org-hide ((t (:foreground ,current-line))))
+ `(org-link ((t (:foreground ,blue))))
+ `(org-todo ((t (:foreground ,red))))
+
+ ;; show-paren-mode
+ `(show-paren-match ((t (:background ,blue :foreground ,current-line))))
+ `(show-paren-mismatch ((t (:background ,orange :foreground ,current-line)))))
+
+ (custom-theme-set-variables
+ 'tomorrow-night-bright
+
+ `(ansi-color-names-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])
+ `(ansi-term-color-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [unspecified ,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])))
+
+(provide-theme 'tomorrow-night-bright)
+
+;;; tomorrow-night-bright-theme.el ends here
View
80 non-elpa/tomorrow-night/tomorrow-night-eighties-theme.el
@@ -0,0 +1,80 @@
+;;; tomorrow-night-eighties-theme.el --- custom theme for faces
+
+;;; Commentary:
+;;
+;;; Tomorrow Night Eighties Theme
+;;
+;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
+;; Ported to GNU Emacs by Chris Charles
+;; Ported to GNU Emacs 24's built-in theme system by Jim Myhrberg (@jimeh)
+
+;;; Code:
+
+(deftheme tomorrow-night-eighties
+ "A Pastel Coloured Theme")
+
+(let ((background "#2d2d2d")
+ (current-line "#393939")
+ (selection "#515151")
+ (foreground "#cccccc")
+ (comment "#999999")
+ (cursor "#cccccc")
+ (red "#f2777a")
+ (orange "#f99157")
+ (yellow "#ffcc66")
+ (green "#99cc99")
+ (aqua "#009999")
+ (blue "#99cccc")
+ (purple "#cc99cc"))
+
+ (custom-theme-set-faces
+ 'tomorrow-night-eighties
+
+ ;; Built-in stuff (Emacs 23)
+ `(default ((t (:background ,background :foreground ,foreground))))
+ `(fringe ((t (:background ,current-line))))
+ `(minibuffer-prompt ((t (:foreground ,blue))))
+ `(mode-line ((t (:background ,current-line :foreground ,foreground))))
+ `(region ((t (:background ,selection))))
+
+ ;; Font-lock stuff
+ `(font-lock-comment-face ((t (:foreground ,comment))))
+ `(font-lock-constant-face ((t (:foreground ,green))))
+ `(font-lock-doc-string-face ((t (:foreground ,comment))))
+ `(font-lock-function-name-face ((t (:foreground ,blue))))
+ `(font-lock-keyword-face ((t (:foreground ,purple))))
+ `(font-lock-string-face ((t (:foreground ,green))))
+ `(font-lock-type-face ((t (:foreground ,yellow))))
+ `(font-lock-variable-name-face ((t (:foreground ,red))))
+ `(font-lock-warning-face ((t (:foreground ,red))))
+
+ ;; hl-line-mode
+ `(hl-line ((t (:background ,current-line))))
+
+ ;; linum-mode
+ `(linum ((t (:background ,current-line :foreground ,foreground))))
+
+ ;; org-mode
+ `(org-date ((t (:foreground ,purple))))
+ `(org-done ((t (:foreground ,green))))
+ `(org-hide ((t (:foreground ,current-line))))
+ `(org-link ((t (:foreground ,blue))))
+ `(org-todo ((t (:foreground ,red))))
+
+ ;; show-paren-mode
+ `(show-paren-match ((t (:background ,blue :foreground ,current-line))))
+ `(show-paren-mismatch ((t (:background ,orange :foreground ,current-line)))))
+
+ (custom-theme-set-variables
+ 'tomorrow-night-eighties
+
+ `(ansi-color-names-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])
+ `(ansi-term-color-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [unspecified ,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])))
+
+(provide-theme 'tomorrow-night-eighties)
+
+;;; tomorrow-night-eighties-theme.el ends here
View
80 non-elpa/tomorrow-night/tomorrow-night-theme.el
@@ -0,0 +1,80 @@
+;;; tomorrow-night-theme.el --- custom theme for faces
+
+;;; Commentary:
+;;
+;;; Tomorrow Night Theme
+;;
+;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
+;; Ported to GNU Emacs by Chris Charles
+;; Ported to GNU Emacs 24's built-in theme system by Jim Myhrberg (@jimeh)
+
+;;; Code:
+
+(deftheme tomorrow-night
+ "A Pastel Coloured Theme")
+
+(let ((background "#1d1f21")
+ (current-line "#282a2e")
+ (selection "#373b41")
+ (foreground "#c5c8c6")
+ (comment "#969896")
+ (cursor "#aeafad")
+ (red "#cc6666")
+ (orange "#de935f")
+ (yellow "#f0c674")
+ (green "#b5bd68")
+ (aqua "#8abeb7")
+ (blue "#81a2be")
+ (purple "#b294bb"))
+
+ (custom-theme-set-faces
+ 'tomorrow-night
+
+ ;; Built-in stuff (Emacs 23)
+ `(default ((t (:background ,background :foreground ,foreground))))
+ `(fringe ((t (:background ,current-line))))
+ `(minibuffer-prompt ((t (:foreground ,blue))))
+ `(mode-line ((t (:background ,current-line :foreground ,foreground))))
+ `(region ((t (:background ,selection))))
+
+ ;; Font-lock stuff
+ `(font-lock-comment-face ((t (:foreground ,comment))))
+ `(font-lock-constant-face ((t (:foreground ,green))))
+ `(font-lock-doc-string-face ((t (:foreground ,comment))))
+ `(font-lock-function-name-face ((t (:foreground ,blue))))
+ `(font-lock-keyword-face ((t (:foreground ,purple))))
+ `(font-lock-string-face ((t (:foreground ,green))))
+ `(font-lock-type-face ((t (:foreground ,yellow))))
+ `(font-lock-variable-name-face ((t (:foreground ,red))))
+ `(font-lock-warning-face ((t (:foreground ,red))))
+
+ ;; hl-line-mode
+ `(hl-line ((t (:background ,current-line))))
+
+ ;; linum-mode
+ `(linum ((t (:background ,current-line :foreground ,foreground))))
+
+ ;; org-mode
+ `(org-date ((t (:foreground ,purple))))
+ `(org-done ((t (:foreground ,green))))
+ `(org-hide ((t (:foreground ,current-line))))
+ `(org-link ((t (:foreground ,blue))))
+ `(org-todo ((t (:foreground ,red))))
+
+ ;; show-paren-mode
+ `(show-paren-match ((t (:background ,blue :foreground ,current-line))))
+ `(show-paren-mismatch ((t (:background ,orange :foreground ,current-line)))))
+
+ (custom-theme-set-variables
+ 'tomorrow-night
+
+ `(ansi-color-names-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])
+ `(ansi-term-color-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [unspecified ,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])))
+
+(provide-theme 'tomorrow-night)
+
+;;; tomorrow-night-theme.el ends here
View
80 non-elpa/tomorrow-night/tomorrow-theme.el
@@ -0,0 +1,80 @@
+;;; tomorrow-theme.el --- custom theme for faces
+
+;;; Commentary:
+;;
+;;; Tomorrow Theme
+;;
+;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
+;; Ported to GNU Emacs by Chris Charles
+;; Ported to GNU Emacs 24's built-in theme system by Jim Myhrberg (@jimeh)
+
+;;; Code:
+
+(deftheme tomorrow
+ "A Pastel Coloured Theme")
+
+(let ((background "#ffffff")
+ (current-line "#e9efff")
+ (selection "#c5cce9")
+ (foreground "#4d4d4c")
+ (comment "#8e908c")
+ (cursor "#aeafad")
+ (red "#c82829")
+ (orange "#f5871f")
+ (yellow "#eab700")
+ (green "#718c00")
+ (aqua "#3e999f")
+ (blue "#4271ae")
+ (purple "#8959a8"))
+
+ (custom-theme-set-faces
+ 'tomorrow
+
+ ;; Built-in stuff (Emacs 23)
+ `(default ((t (:background ,background :foreground ,foreground))))
+ `(fringe ((t (:background ,current-line))))
+ `(minibuffer-prompt ((t (:foreground ,blue))))
+ `(mode-line ((t (:background ,current-line :foreground ,foreground))))
+ `(region ((t (:background ,selection))))
+
+ ;; Font-lock stuff
+ `(font-lock-comment-face ((t (:foreground ,comment))))
+ `(font-lock-constant-face ((t (:foreground ,green))))
+ `(font-lock-doc-string-face ((t (:foreground ,comment))))
+ `(font-lock-function-name-face ((t (:foreground ,blue))))
+ `(font-lock-keyword-face ((t (:foreground ,purple))))
+ `(font-lock-string-face ((t (:foreground ,green))))
+ `(font-lock-type-face ((t (:foreground ,yellow))))
+ `(font-lock-variable-name-face ((t (:foreground ,red))))
+ `(font-lock-warning-face ((t (:foreground ,red))))
+
+ ;; hl-line-mode
+ `(hl-line ((t (:background ,current-line))))
+
+ ;; linum-mode
+ `(linum ((t (:background ,current-line :foreground ,foreground))))
+
+ ;; org-mode
+ `(org-date ((t (:foreground ,purple))))
+ `(org-done ((t (:foreground ,green))))
+ `(org-hide ((t (:foreground ,current-line))))
+ `(org-link ((t (:foreground ,blue))))
+ `(org-todo ((t (:foreground ,red))))
+
+ ;; show-paren-mode
+ `(show-paren-match ((t (:background ,blue :foreground ,current-line))))
+ `(show-paren-mismatch ((t (:background ,orange :foreground ,current-line)))))
+
+ (custom-theme-set-variables
+ 'tomorrow
+
+ `(ansi-color-names-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])
+ `(ansi-term-color-vector
+ ;; black, red, green, yellow, blue, magenta, cyan, white
+ [unspecified ,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])))
+
+(provide-theme 'tomorrow)
+
+;;; tomorrow-theme.el ends here

0 comments on commit 7ee2b17

Please sign in to comment.