help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: make background color depend on mode


From: Drew Adams
Subject: RE: make background color depend on mode
Date: Mon, 15 Sep 2008 22:35:49 -0700

> I'd like to configure emacs to set the background color 
> depending on the mode.  Is it possible to do this, and how?  

Put a background-changing function on one of the hooks `change-major-mode-hook'
or `after-change-major-mode-hook'. The function can use `set-background-color'
to change the frame background (e.g. as a function of what the mode is).

But keep in mind that background color applies to a frame, not to a buffer or
window (so far), so you will probably also want to use one buffer per frame. If
you do that, you might be interested in library `oneonone.el':
http://www.emacswiki.org/cgi-bin/wiki/OneOnOneEmacs





reply via email to

[Prev in Thread] Current Thread [Next in Thread]