emacs_colors_frames_menus

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



From: doom@kzsu.stanford.edu (Joe Brenner)
Subject: Re: default emacs color (gray + brown)
Date: 6 Mar 2001 23:17:00 GMT

Alex Schroeder <alex@gnu.org> writes:

>steve connet <steve.connet+usenet@home.com> writes:

>> I know how to change the colors so that is not my question. My
>> question is how do I get emacs do display it's own default colors (the
>> gray and brown colors)? Mine are always white and black.

>Did you check your X resources?  An obvious place to look for settings
>would be your ~/.Xdefaults file.  My copy has the following entries.
>They affect Emacs even without a .emacs file:

>emacs*Background:		DarkSlateGray
>emacs*Foreground:		Wheat
>emacs*Font:			7x14

Setting the colors in X is one method, my preference is to
set them inside my .emacs file like so (this should override
the X settings, whatever they are):

;Highlighting the region
(transient-mark-mode t)
(set-face-foreground 'region "Black")
(set-face-background 'region "DarkOliveGreen")

;hacking the rest of the color scheme:
(set-foreground-color "Thistle")
(set-background-color "Black")
(set-cursor-color "Orchid")
;(set-mouse-color "GreenYellow")
;(set-mouse-color "red")

(set-face-foreground 'modeline "Black")
(set-face-background 'modeline "DarkSlateBlue")

; Does this do anything?
(set-border-color "DarkOliveGreen")

; This sets the text color for highlighted text (e.g. when
running ispell)
(set-face-foreground 'highlight "PaleGreen")
(set-face-background 'highlight "BlueViolet")

(show-paren-mode)

(set-face-foreground 'show-paren-match-face "PaleGreen")
(set-face-background 'show-paren-match-face "BlueViolet")

(set-face-foreground 'show-paren-mismatch-face "yellow")
(set-face-background 'show-paren-mismatch-face "firebrick")


You also might try throwing in a: 

  (font-lock-mode) 

Personally I just turn this on manually when I want it.

And don't forget:

   M-x list-colors-display

If you want to try different colors..

Newsgroups: comp.emacs
Subject: Re: default emacs color (gray + brown)
References: <lyr90kg4cl.fsf@computerhackerz.com> <m2vgpw0w4y.fsf@snail.nowhere.ch> <983r5c$iap$1@nntp.Stanford.EDU>
From: Alex Schroeder <alex@gnu.org>
Date: 08 Mar 2001 01:14:24 +0100
Message-ID: <m2y9uhruan.fsf@snail.nowhere.ch>
Lines: 26
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 212.254.1.105
X-Trace: 8 Mar 2001 01:14:41 +0100, 212.254.1.105
Organization: Customers of Tiscali DataComm AG - http://www.tiscalinet.ch/
Path: nntp.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!4.24.21.218.MISMATCH!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed.mathworks.com!EU.net!npeer.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!newsmaster-01.atnet.at!atnet.at!news.datacomm.ch
Xref: nntp.stanford.edu comp.emacs:55827

doom@kzsu.stanford.edu (Joe Brenner) writes:

> >emacs*Background:		DarkSlateGray
> >emacs*Foreground:		Wheat
> >emacs*Font:			7x14
> 
> Setting the colors in X is one method, my preference is to
> set them inside my .emacs file like so (this should override
> the X settings, whatever they are):

Can you change the Emacs menu colors from .emacs?  I don't think that
is possible.  X ressources seem to be the only way to do it.

In addition to that, you will need to frob default-frame-alist if you
want to change the background of frames in Emacs.  Changing the
default face is not going to work.

Therefore X ressources seem to be the better alternative for plain
foreground and background colors.  You could even use it to have the
menus another color than the rest of the frames by using X ressources
and default-frame-alist (Emacs) or the default face (XEmacs).

Alex.
-- 
http://www.geocities.com/kensanata/emacs.html
"Use M-x customize-face to change the colors used for syntax coloring."

Path: nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!diup-216-32.inter.net.IL!not-for-mail
From: Eli Zaretskii <eliz@is.elta.co.il>
Newsgroups: comp.emacs
Subject: Re: default emacs color (gray + brown)
Date: Thu, 08 Mar 2001 11:13:07 +0200
Lines: 26
Message-ID: <3AA74D23.E67A442@is.elta.co.il>
References: <lyr90kg4cl.fsf@computerhackerz.com> <m2vgpw0w4y.fsf@snail.nowhere.ch> <983r5c$iap$1@nntp.Stanford.EDU> <m2y9uhruan.fsf@snail.nowhere.ch>
NNTP-Posting-Host: diup-216-32.inter.net.il (213.8.216.32)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 984042774 639807 213.8.216.32 (16 [61365])
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
Xref: nntp.stanford.edu comp.emacs:55832

Alex Schroeder wrote:
> 
> doom@kzsu.stanford.edu (Joe Brenner) writes:
> 
> > >emacs*Background:            DarkSlateGray
> > >emacs*Foreground:            Wheat
> > >emacs*Font:                  7x14
> >
> > Setting the colors in X is one method, my preference is to
> > set them inside my .emacs file like so (this should override
> > the X settings, whatever they are):
> 
> Can you change the Emacs menu colors from .emacs?  I don't think that
> is possible.  X ressources seem to be the only way to do it.

This is a known bug in Emacs 20.x and 19.x; it is solved in Emacs 21.

> In addition to that, you will need to frob default-frame-alist if you
> want to change the background of frames in Emacs.  Changing the
> default face is not going to work.

This is a feature: faces are private to a frame, so that you could have
different faces on different frames.  For example, you can have each frame
have a different background (this works in Emacs 21 even on a tty).

So I agree with Joe: setting colors from .emacs is a better way.


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu