Created
February 16, 2010 22:29
-
-
Save dleslie/306020 to your computer and use it in GitHub Desktop.
Color Theme Cycler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'color-theme) | |
(setq color-theme-is-global t) | |
(load "zenburn.el") | |
(setq color-theme-list | |
'(color-theme-calm-forest color-theme-zenburn color-theme-billw color-theme-calm-forest color-theme-goldenrod color-theme-dark-blue2 color-theme-robin-hood color-theme-gray30 color-theme-shaman color-theme-gnome2 color-theme-charcoal-black)) | |
(defun cycle-color-theme-list () | |
(setq color-theme-list (append (cdr color-theme-list) (list (car color-theme-list))))) | |
(defun toggle-color-theme () | |
(interactive) | |
(cycle-color-theme-list) | |
(funcall (car color-theme-list)) | |
(custom-set-faces | |
'(font-lock-brace-face ((t (:inherit font-lock-brace-face :height 0.75)))) | |
'(font-lock-builtin-face ((t (:inherit font-lock-builtin-face :height 1.5)))) | |
'(font-lock-function-name-face ((t (:inherit font-lock-function-name-face :height 1.5)))) | |
'(font-lock-keyword-face ((t (:inherit font-lock-keyword-face :height 1.5)))) | |
'(font-lock-preprocessor-face ((t (:inherit font-lock-preprocessor :height 1.5))))) | |
(message "Using %s" (car color-theme-list))) | |
(global-set-key (kbd "<f12>") 'toggle-color-theme) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment