* region foreground color
@ 2013-04-19 20:42 blacknwhite77
2013-04-19 21:38 ` Drew Adams
[not found] ` <mailman.24348.1366407518.855.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: blacknwhite77 @ 2013-04-19 20:42 UTC (permalink / raw)
To: help-gnu-emacs
Greetings,
I used emacs ver.23 and whenever I select a region "highlight it" the background color will become LightGoldenrod2 and the original colors "face-fonts" of functions/structures...etc "stays the same".
I have switched to use emacs ver.24 and these defaults changed.
The background color changed to be a blue color and now there is a foreground color of the highlighted text to be white.
I tried to revert to old defaults by adding these two lines to my .emacs:
(set-face-background 'region "LightGoldenrod2") ; Set region background color
(set-face-foreground 'region "Black") ; Set region foreground color
So at least now I have the background color set right and the text color is not the annoying white one.
However, now all the text that is highlighted become black color.
How is it possible to configure emacs to leave the highlighted text in it's original color?
Thanks a bunch.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: region foreground color
2013-04-19 20:42 region foreground color blacknwhite77
@ 2013-04-19 21:38 ` Drew Adams
[not found] ` <mailman.24348.1366407518.855.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2013-04-19 21:38 UTC (permalink / raw)
To: blacknwhite77, help-gnu-emacs
> I have switched to use emacs ver.24 and these defaults changed.
> The background color changed to be a blue color and now there
> is a foreground color of the highlighted text to be white.
I don't see that with `emacs -Q'. Perhaps your init file loads something that
changes face `region'?
> I tried to revert to old defaults by adding these two lines
> to my .emacs:
> (set-face-background 'region "LightGoldenrod2")
> (set-face-foreground 'region "Black")
>
> So at least now I have the background color set right and the
> text color is not the annoying white one.
> However, now all the text that is highlighted become black color.
You just set it to Black, so that's not surprising.
> How is it possible to configure emacs to leave the
> highlighted text in it's original color?
(set-face-foreground 'region nil) ; UNset the foreground
[Of if you use `M-x customize-face region' then just uncheck the box that
specifies a foreground color. Easy. No need to know any Lisp.]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: region foreground color
[not found] ` <mailman.24348.1366407518.855.help-gnu-emacs@gnu.org>
@ 2013-04-19 21:41 ` Rami A
0 siblings, 0 replies; 3+ messages in thread
From: Rami A @ 2013-04-19 21:41 UTC (permalink / raw)
To: help-gnu-emacs
Drew...That is "exactly" what I was looking for.
Setting the foreground region color to nil worked.
Thank you so much.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-19 21:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 20:42 region foreground color blacknwhite77
2013-04-19 21:38 ` Drew Adams
[not found] ` <mailman.24348.1366407518.855.help-gnu-emacs@gnu.org>
2013-04-19 21:41 ` Rami A
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.