From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: brian.auld@adic.com Newsgroups: gmane.emacs.help Subject: RE: Default colors 'list-colors-display' Date: Tue, 8 Apr 2003 11:38:51 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <995FF289C9D69747A09E42992644595405B236F9@penguin.adic.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: main.gmane.org 1049827650 27502 80.91.224.249 (8 Apr 2003 18:47:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2003 18:47:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 08 20:47:27 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 192y7z-00079I-00 for ; Tue, 08 Apr 2003 20:47:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192y6t-0006sY-01 for gnu-help-gnu-emacs@m.gmane.org; Tue, 08 Apr 2003 14:46:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192y3R-0004xn-00 for help-gnu-emacs@gnu.org; Tue, 08 Apr 2003 14:42:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192y2i-0004Rx-00 for help-gnu-emacs@gnu.org; Tue, 08 Apr 2003 14:42:01 -0400 Original-Received: from [63.81.117.28] (helo=penguin.adic.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192y2a-0004B7-00 for help-gnu-emacs@gnu.org; Tue, 08 Apr 2003 14:41:52 -0400 Original-Received: by penguin.adic.com with Internet Mail Service (5.5.2653.19) id <2FWPQFZ1>; Tue, 8 Apr 2003 11:38:52 -0700 Original-To: help-gnu-emacs@gnu.org X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8296 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8296 > -----Original Message----- > From: Alex Schroeder [mailto:alex@gnu.org] > Sent: Tuesday, April 08, 2003 2:15 PM > To: help-gnu-emacs@gnu.org > Subject: Re: Default colors 'list-colors-display' > > brian.auld@adic.com writes: > > > I have gone cross-eyed the past day trying to find the answer to my > > question, but my efforts have not beared fruit. Hopefully someone can > > answer this for me. > > > > I'm trying to add/change colors to my > > list-colors-display'. Ultimately, I want to get rid of the color > > cyan', and replace it with something else, as 'cyan' is next to > > impossible to read against a white background. > > > > Specifically it is for color coding 'C'. All other colors in my > > list-colors-display' are used to highlight some part of the 'C' code, > > so if I simply change the face where cyan is used ('C' keywords) to > > another defined color, I will be duplicated its use with something > > else. > > > > I therefore want to add a color that will ultimately show up when I do > > a 'list-colors-display'. It appears that when I go into a M-x > > customize ... I can only change colors to something that is defined > > under 'list-colors-display'. > > > > Can someone point me to how I can add color definitions to my emacs. > > I think you are mixing up some things. When your C source is > hilighted, then so-called "faces" are used. A face specifies size, > font-family, foreground-color, background-color, etc. So it seems to > me that you need to run M-x list-faces-display, find the face whose > name starts with font-lock-..., remember its name, and then run M-x > customize-face to change it. Alex, Thanks for your reply. Yes, I tried this method yesterday. The problem is, the only colors accepted when I try to change the color in a font face, using 'M-x customize-face ... ', seem to be those defined in 'list-colors-display'. My 'list-colors-display' show the following: Black, red, green, yellow, blue, magenta, cyan and white. I do not want to use cyan. All other colors from 'list-colors-display' above are used in some other part of the 'C' color coding, defined under some other font-lock... setting. So, I want to either (a) define a new color, or (b) change cyan to something else. Regarding 'list-colors-display': (1) How do I define a new color? (or) (2) How do I redefine the RGB values of an existing color? (or) (3) How do I set the color in a font face to something other than what's in my 'list-colors-display'? An answer to any 1 of the above 3 would I think get me over this hump. Brian > Alex. > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs