Merge branch 'master' of ssh://repo.or.cz/srv/git/Worg
[Worg.git] / org-color-themes.org
blob1234ad63504de858322ab743466ffe1792bdd4fa
1 #+OPTIONS:    H:3 num:nil toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
2 #+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate
3 #+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
4 #+TAGS:       Write(w) Update(u) Fix(f) Check(c)
5 #+TITLE:      Org Color Themes
6 #+AUTHOR:     Worg people
7 #+EMAIL:      mdl AT imapmail DOT org
8 #+LANGUAGE:   en
9 #+PRIORITIES: A C B
10 #+CATEGORY:   worg
12 # This file is the default header for new Org files in Worg.  Feel free
13 # to tailor it to your needs.
15 #+MACRO: screenshot #+HTML: <br style="clear:both;"/><div class="figure"><p><img style="float:center;margin:20px 20px 20px 20px;" width="500px" src="$2"/></p><p><a href="http://repo.or.cz/w/Worg.git/blob_plain/HEAD:/color-themes/$1">$1</a></p></div>
17 [[file:index.org][{Back to Worg's index}]]
20 # Contributing Screenshots to this page.
22 # To make an addition to this page
23 # 1) place your screenshot in the /images/screenshots/ directory in the
24 #    base of the worg repository -- or not if you'd rather host the
25 #    image externally
26 # 2) place your color-theme-*.el file in the /color-themes/ file in the
27 #    base of the worg repository
28 # 3) add a macro call like those shown below passing the name of your
29 #    color theme and the link to your screen-shot respectively to the
30 #    =screenshot= macro
32 * Org Colour Themes.
33 A popular way of customizing Emacs colours is to use the color-theme
34 package (see [[http://www.emacswiki.org/emacs/ColorTheme][color-theme emacswiki page]].)
36 Here is a list of color themes that are aware of Org:
37 You can see screen shots of these themes [[file:color-themes-screenshot.org][here]]. Once you have
38 installed a theme it is easy to tweak its appearance by editing the
39 theme's lisp file.
41 Some of these themes are available in Worg in the color-themes
42 directory, whilst others are linked either to the author's site, or to Github.
44 There is a page with screenshots of each of the themes [[file:color-themes-screenshot.org][here]] .
46 ** [[http://www.brockman.se/software/zenburn/zenburn.el][color-theme-zenburn.el]] (maintained by Daniel Brockman)
47 ** [[file:~/Private/Dropbox/Worg/color-themes/color-theme-colorful-obsolescence.el][color-theme-colorful-obsolescence.el]] (Scott Jaderholm)
49 Links to Scott's themes all point directly to his site.
50 ** [[http://jaderholm.com/color-themes/color-theme-wombat.el][color-theme-wombat.el]] (Scott Jaderholm)
52 ** [[http://jaderholm.com/color-themes/color-theme-active.el][color-theme-active.el]] (Scott Jaderholm)
54 ** [[file:color-themes/color-theme-leuven.el][color-theme-leuven.el]] (maintained by Sebastien Vauban)
56 ** [[file:color-themes/color-theme-zenburn.el][color-theme-zenburn.el]] (Daniel Brockman Adrian C., Bastien Guerry)
58 ** [[file:color-themes/color-theme-tangotango.el][color-theme-tangotango.el]] (Julien Barnier)
59 [[http://blog.nozav.org/post/2010/07/12/Updated-tangotango-emacs-color-theme][Link]] to Julien's blog post about tangotango. [[http://github.com/juba/color-theme-tangotango][Link]] to the Github repository.
61 ** [[file:color-themes/color-theme-folio.el][color-theme-folio.el]] color-theme-folio.el (David O'Toole)
63 ** [[file:color-themes/color-theme-manoj.el][color-theme-manoj.el]] (maintained by [[http://www.golden-gryphon.com/blog/manoj/blog/2008/05/26/Theming_Emacs/][Memnon]])
65 ** [[file:color-themes/color-theme-zenash.el][color-theme-zenash.el]] (maintained by Yavuz Arkun)
66 A modified version of zenburn. [[http://github.com/yarkun/zenash][Link]] to the Github repository.
68 ** [[http://github.com/suvayu/.emacs.d/blob/master/lisp/color-theme-dark-emacs.el][color-theme-dark-emacs.el]] (maintained by Suvayu Ali)
69 Based on theme made by the emacswiki user, ZWZ. The original theme can
70 be found [[http://www.emacswiki.org/emacs/zwz][here]] . Suvayu has also made some org-mode font modifications
71 outside of the colour theme, which can be obtained [[http://github.com/suvayu/.emacs.d/blob/master/lisp/org-mode-settings.el][here]]. Suvayu's
72 [[http://github.com/suvayu/.emacs.d/blob/master/init.el][init.el]] gives more information on how to use his customizations.
75 ** Installing Org Colour Themes.
76 First make sure that you have the Emacs color-theme package
77 installed. Copy the lisp files for the themes into a directory in your
78 Emacs load path.
80 If you want to be able to easily cycle between different
81 colour schemes, you need something like the following in your .emacs:
83 #+BEGIN_SRC emacs-lisp
84 (require 'color-theme)
85 (setq color-theme-is-global t)
86 (color-theme-initialize)
88 (load "color-theme-colorful-obsolescence")
89 (load "color-theme-zenburn")
90 (load "color-theme-tangotango")
91 (load "color-theme-railscast")
92 (load "color-theme-leuven")
93 (load "color-theme-folio")
94 (load "color-theme-zenash")
95 (load "color-theme-manoj")
97 (setq my-color-themes (list
98   'color-theme-tangotango
99   'color-theme-colorful-obsolescence 'color-theme-zenburn
100   'color-theme-leuven 'color-theme-folio 
101   'color-theme-manoj 'color-theme-zenash
102   'color-theme-railscast
105 (defun my-theme-set-default () ; Set the first row
106       (interactive)
107       (setq theme-current my-color-themes)
108       (funcall (car theme-current)))
109      
110     (defun my-describe-theme () ; Show the current theme
111       (interactive)
112       (message "%s" (car theme-current)))
113      
114    ; Set the next theme (fixed by Chris Webber - tanks)
115     (defun my-theme-cycle ()            
116       (interactive)
117       (setq theme-current (cdr theme-current))
118       (if (null theme-current)
119       (setq theme-current my-color-themes))
120       (funcall (car theme-current))
121       (message "%S" (car theme-current)))
122     
123     (setq theme-current my-color-themes)
124     (setq color-theme-is-global nil) ; Initialization
125     (my-theme-set-default)
126     (global-set-key [f4] 'my-theme-cycle)
127   
128 #+END_SRC
130 Now you can cycle through the installed themes using the F4 key.