[Top][All Lists]

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

RE: How change color of 1. "mouse dragged" text & 2. mode line text????

From: Bingham, Jay
Subject: RE: How change color of 1. "mouse dragged" text & 2. mode line text????
Date: Mon, 3 Dec 2001 16:40:18 -0600


I just did some experimentation on my emacs running under Win2000, not
that that should make any difference other than that is where I have
colors defined.  Here is what I found.  If I create a new frame it is
not created with the same background/foreground colors as the initial
frame.  The region colors however are the same in both frames, i.e. the
colors I defined in my .emacs.
I went to the info pages and the emacs lisp reference and read what they
say about the default-frame-alist and about frame parameters.
When a new frame is created emacs assigns values to the frame-local
variables from parameters to the make-frame function, then from the
default-frame-alist, and finally from the X resources.  There is a long
list of frame-local variables, there are five that define the colors of
the frame: foreground-color, background-color, mouse-color, cursor-color
and border-color.  Once the frame is created these variables can be set
for an individual frame with the setq expression by executing the
expression in the frame (which is what my .emacs does in the initial
frame).  There is also a hook variable that can specify a function to
run after a frame is created which can be used to modify frame
There is also an initial-frame-alist that can be used to make the first
frame that is created by emacs different than the subsequent frames,
which use the default-frame-alist.
Since the region colors are not associated with a frame they are
automatically universal.  
So there you have the explanation.

.    COMPAQ NonStop Integrity Systems
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-

 -----Original Message-----
From:   Chris Seberino [] 
Sent:   Saturday, 01 December, 2001 1:34 a
To:     Bingham, Jay
Subject:        Re: How change color of 1. "mouse dragged" text & 2.
mode line text????


Thanks again! I tried your commands and now it looks great!!!
Actually, your commands worked *better* than I imagined they
*could* and I wanted to ask a question about that if you don't mind....

All of my color settings had to be put into "default-frame-alist"
so that they showed up in *all* windows/modes/etc.....

(setq default-frame-alist 
   '((cursor-color . "red") (background-color . "black")
(foreground-color . "khaki")) )

However, YOUR commands seem to be universal without having
to be stuffed into an "alist" like above.  How come Emacs
likes your color commands and makes them universal but
my commands like "background-color" are not universal if
I set them with set- command like you did?????

reply via email to

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