emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Elpa color-theme with emacs24
@ 2013-09-26  2:22 Rene
  2013-09-26  7:31 ` Sebastien Vauban
  0 siblings, 1 reply; 6+ messages in thread
From: Rene @ 2013-09-26  2:22 UTC (permalink / raw)
  To: emacs-orgmode

I just tried out color-theme with emacs24.

It seems the code on http://orgmode.org/worg/org-color-themes.html is not
quite compatible with elpa packages.

Here is what I used instead.

;-----------------------------------------------------------
; To easily cycle between different colour schemes using the F4 key
(require 'color-theme)
(require 'cyberpunk-theme)
(require 'leuven-theme)
(require 'tangotango-theme)
(require 'zenburn-theme)
(setq color-theme-is-global t)

(setq my-color-themes (list
		       'cyberpunk
		       'leuven
		       'zenburn
		       'tangotango
		       ))

(defun my-theme-set-default () ; Set the first row
      (interactive)
      (setq theme-current my-color-themes)
      (load-theme  (car theme-current) t))

(defun my-describe-theme () ; Show the current theme
      (interactive)
      (message "My color theme: %s" (car theme-current)))

(defun my-theme-cycle ()    ; Set the next theme        
      (interactive)
      (setq theme-current (cdr theme-current))
      (if (null theme-current)
      (setq theme-current my-color-themes))
      (load-theme  (car theme-current) t)
      (message "My color theme: %S" (car theme-current)))

(setq theme-current my-color-themes)
(setq color-theme-is-global nil) ; Initialization
(my-theme-set-default)
(global-set-key [f4] 'my-theme-cycle)
;------------------------------------------------------------

--
Rene

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-30 20:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-26  2:22 Elpa color-theme with emacs24 Rene
2013-09-26  7:31 ` Sebastien Vauban
2013-09-27  2:08   ` Rene
2013-09-27  4:23     ` Carsten Dominik
2013-09-30 20:46       ` Rene
2013-09-27 12:57     ` Suvayu Ali

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).