all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* make background color depend on mode
@ 2008-09-15  8:02 Glen Stark
  2008-09-16  5:35 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Glen Stark @ 2008-09-15  8:02 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone

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

Thanks for your help.

Glen


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

* RE: make background color depend on mode
  2008-09-15  8:02 make background color depend on mode Glen Stark
@ 2008-09-16  5:35 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2008-09-16  5:35 UTC (permalink / raw)
  To: 'Glen Stark', help-gnu-emacs

> 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





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

end of thread, other threads:[~2008-09-16  5:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-15  8:02 make background color depend on mode Glen Stark
2008-09-16  5:35 ` Drew Adams

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.