summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-02-23 09:36:39 +0100
committerGravatar Tom Willemsen2012-02-23 09:36:39 +0100
commit9aa83495b17f358010c35985267e03b8ad67b656 (patch)
tree841ac50002ba8d7fa7129bfdf9c600e997b0328f
downloadsw-theme-9aa83495b17f358010c35985267e03b8ad67b656.tar.gz
sw-theme-9aa83495b17f358010c35985267e03b8ad67b656.zip
Initial commit
-rw-r--r--.gitignore1
-rw-r--r--jedi-theme.el11
-rw-r--r--sith-theme.el11
-rw-r--r--sw-theme.el75
4 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c531d98
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.elc
diff --git a/jedi-theme.el b/jedi-theme.el
new file mode 100644
index 0000000..8e31805
--- /dev/null
+++ b/jedi-theme.el
@@ -0,0 +1,11 @@
+(require 'sw-theme)
+
+(deftheme jedi
+ "Created 2012-02-22")
+
+(custom-theme-set-faces
+ 'jedi
+ '(default ((t (:background "#ffe7ba" :foreground "#000000")))))
+(sw-theme-set-faces 'jedi)
+
+(provide-theme 'jedi)
diff --git a/sith-theme.el b/sith-theme.el
new file mode 100644
index 0000000..7ba62f5
--- /dev/null
+++ b/sith-theme.el
@@ -0,0 +1,11 @@
+(require 'sw-theme)
+
+(deftheme sith
+ "Created 2012-02-22")
+
+(custom-theme-set-faces
+ 'sith
+ '(default ((t (:background "#000000" :foreground "#ffffff")))))
+(sw-theme-set-faces 'sith)
+
+(provide-theme 'sith)
diff --git a/sw-theme.el b/sw-theme.el
new file mode 100644
index 0000000..b937878
--- /dev/null
+++ b/sw-theme.el
@@ -0,0 +1,75 @@
+(defun sw-theme-set-faces (theme)
+ (custom-theme-set-faces
+ theme
+ '(font-lock-builtin-face ((((background light))
+ (:foreground "#00aa00"))
+ (((background dark))
+ (:foreground "#ff0000"))))
+ '(font-lock-comment-delimiter-face ((default
+ (:weight bold))
+ (((background light))
+ (:foreground "#404040"))
+ (((background dark))
+ (:foreground "#888888"))))
+ '(font-lock-comment-face ((((background light))
+ (:foreground "#808080"))
+ (((background dark))
+ (:foreground "#aaaaaa"))))
+ '(font-lock-function-name-face ((default
+ (:weight bold))
+ (((background light))
+ (:foreground "#00aa00"))
+ (((background dark))
+ (:foreground "#ff0000"))))
+ '(font-lock-keyword-face ((((background light))
+ (:foreground "#1e90ff"))
+ (((background dark))
+ (:foreground "#ffa500"))))
+ '(font-lock-type-face ((default
+ (:weight bold))
+ (((background light))
+ (:foreground "#800080"))
+ (((background dark))
+ (:foreground "#ffff00"))))
+ '(font-lock-variable-name-face ((((background light))
+ (:foreground "#800080"))
+ (((background dark))
+ (:foreground "#ffff00"))))
+ '(fringe ((((background light))
+ (:background "#ffe7ba" :foreground "#000000"))
+ (((background dark))
+ (:background "#000000" :foreground "#ffffff"))))
+ '(mode-line ((((background light))
+ (:background "#ffe4b5" :foreground "#000000"
+ :box (:line-width 1 :color "#00aa00")))
+ (((background dark))
+ (:background "#000000" :foreground "#ffffff"
+ :box (:line-width 1 :color "#ff0000")))))
+ '(mode-line-buffer-id ((default
+ (:weight bold))
+ (((background light))
+ (:foreground "#aa00aa"))
+ (((background dark))
+ (:foreground "#ffff00"))))
+ '(mode-line-inactive ((((background light))
+ (:background "#ffe4b5" :foreground "#808080"
+ :box (:line-width 1 :color "#004000")))
+ (((background dark))
+ (:background "#000000" :foreground "#aaaaaa"
+ :box (:line-width 1 :color "#500000")))))))
+
+(defun turn-on-jedi ()
+ (disable-theme 'sith)
+ (enable-theme 'jedi))
+
+(defun turn-on-sith ()
+ (disable-theme 'jedi)
+ (enable-theme 'sith))
+
+(defun sw-theme-switch ()
+ (interactive)
+ (if (eq (car custom-enabled-themes) 'jedi)
+ (turn-on-sith)
+ (turn-on-jedi)))
+
+(provide 'sw-theme)