[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Rotating color themes?
From: |
Drew Adams |
Subject: |
RE: Rotating color themes? |
Date: |
Sun, 6 Apr 2008 21:56:42 -0700 |
> I have recently discovered "color-themes". This approach solves the
> problem of faces that are not clearly visible on a given background.
> I am now asking whether anyone can suggest how to code a similar
> routine to cycle the color-themes in new frames.
See the code in these functions for implementation ideas:
http://www.emacswiki.org/cgi-bin/wiki/oneonone.el: functions
`1on1-color-minibuffer-frame-on-setup', `1on1-color-minibuffer-frame-on-exit'
(but changes frame background hue, not theme)
http://www.emacswiki.org/cgi-bin/wiki/doremi-cmd.el: function
`doremi-color-themes' cycles among color themes, applying next to all frames (vs
what you want, which is give the next frame created the next color theme)
The latter uses the following list of color themes. You might use something
similar, and just advance a pointer into the list.
(defcustom doremi-color-themes
(and (require 'color-theme nil t)
(delq 'bury-buffer (mapcar 'car color-themes)))
"*List of color themes to cycle through using `doremi-color-themes'."
:type 'hook :group 'doremi-misc-commands)
Shouldn't be hard to do what you want. But I can't imagine that color themes
would be a great way to give frames recognizable identity.
HTH.