Permalink
Browse files

Merge pull request #2 from gorakhargosh/master

  • Loading branch information...
2 parents b1ab985 + 639abbc commit b294b30815eba7c661017596fed0fe027b6077d0 @olegshaldybin committed Dec 28, 2011
Showing with 64 additions and 18 deletions.
  1. +64 −18 color-theme-railscasts.el
View
@@ -1,18 +1,56 @@
-;; Railscasts color theme for Emacs.
+;;; color-theme-railscasts.el --- Railscasts color theme for GNU Emacs.
+
+;; Inspired by the brilliant Railscasts theme for TextMate
+
+;; Copyright (C) 2009 Oleg Shaldybin <oleg.shaldybin@gmail.com>
+
+;; Author: Oleg Shaldybin
+;; Adapted-By: Yesudeep Mangalapilly
+;; Keywords: railscasts color theme
+;; URL: https://github.com/olegshaldybin/color-theme-railscasts
+;; Version: 0.0.2
+;; Package-Requires: ((color-theme "6.6.1"))
+
+;; This file is NOT a part of GNU Emacs.
+
+;;; License:
+
+;; MIT License
+;; -----------
+;; Permission is hereby granted, free of charge, to any person
+;; obtaining a copy of this software and associated documentation
+;; files (the "Software"), to deal in the Software without
+;; restriction, including without limitation the rights to use,
+;; copy, modify, merge, publish, distribute, sublicense, and/or
+;; sell copies of the Software, and to permit persons to whom the
+;; Software is furnished to do so, subject to the following
+;; conditions:
;;
-;; To use add the following to your .emacs file:
+;; The above copyright notice and this permission notice shall
+;; be included in all copies or substantial portions of the
+;; Software.
+;;
+;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+;; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+;; OTHER DEALINGS IN THE SOFTWARE.
+
+;;; Usage:
;;
;; The path in the third line is the path to the railscasts theme .el file.
;; (require 'color-theme)
;; (color-theme-initialize)
-;; (load-file "~/.emacs.d/site-lisp/themes/color-theme-railscasts.el")
+;; (load-file "~/.emacs.d/site-lisp/themes/color-theme-railscasts.el")
;; (color-theme-railscasts)
-;;
-;; MIT License Copyright (c) 2009 Oleg Shaldybin <oleg.shaldybin@gmail.com>
-;; Inspired by the brilliant Railscasts theme for TextMate
-;;
-;; Added modification of a default background. This makes sure that when you run
-;; Railscasts the background color also syncs with the railscast theme bg color.
+
+;;; Code:
+
+(eval-when-compile
+ (require 'color-theme))
(defun color-theme-railscasts ()
(interactive)
@@ -21,7 +59,7 @@
((background-color . "#232323")
(border-color . "#232323")
(background-mode . dark)
- (mouse-color . "sienna1") ; avallark
+ (mouse-color . "sienna1") ; avallark
(cursor-color . "#5A647E") ;avallark
(foreground-color . "#E6E1DC"))
(default ((t (:background "#232323" :foreground "#F8F8F8")))) ;avallark
@@ -45,20 +83,28 @@
(highlight ((t (:background "darkolivegreen"))))
(italic ((t (:italic t))))
(modeline ((t (:background "#A5BAF1" :foreground "black"))))
- (modeline-buffer-id ((t (:background "#A5BAF1" :foreground
+ (modeline-buffer-id ((t (:background "#A5BAF1" :foreground
"black"))))
- (modeline-mousable ((t (:background "#A5BAF1" :foreground
+ (modeline-mousable ((t (:background "#A5BAF1" :foreground
"black"))))
(modeline-mousable-minor-mode ((t (:background
"#A5BAF1" :foreground "black"))))
(region ((t (:background "#555577"))))
(primary-selection ((t (:background "#555577"))))
(isearch ((t (:background "#555555"))))
- (zmacs-region ((t (:background "#555577"))))
- (secondary-selection ((t (:background "darkslateblue"))))
- (flymake-errline ((t (:background "LightSalmon" :foreground
- "black"))))
- (flymake-warnline ((t (:background "LightSteelBlue" :foreground
+ (zmacs-region ((t (:background "#555577"))))
+ (secondary-selection ((t (:background "darkslateblue"))))
+ (flymake-errline ((t (:background "LightSalmon" :foreground
+ "black"))))
+ (flymake-warnline ((t (:background "LightSteelBlue" :foreground
"black"))))
- (underline ((t (:underline t))))
+ (underline ((t (:underline t))))
(minibuffer-prompt ((t (:bold t :foreground "#FF6600")))))))
+
+
+(color-theme-railscasts)
+
+
+(provide 'color-theme-railscasts)
+
+;;; color-theme-railscasts.el ends here

0 comments on commit b294b30

Please sign in to comment.