From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: arildna@gmail.com Newsgroups: gmane.emacs.help Subject: Re: color customisation and multiple windows Date: 14 Apr 2007 07:31:38 -0700 Organization: http://groups.google.com Message-ID: <1176561098.360806.85690@y5g2000hsa.googlegroups.com> References: <1176546326.810613.249810@e65g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1176561401 9444 80.91.229.12 (14 Apr 2007 14:36:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2007 14:36:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 16:36:35 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HcjMg-0005we-0I for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 16:36:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcjR4-0001hw-01 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 10:41:06 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!y5g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 129.241.61.254 Original-X-Trace: posting.google.com 1176561098 13768 127.0.0.1 (14 Apr 2007 14:31:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 14 Apr 2007 14:31:38 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; nb-NO; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: y5g2000hsa.googlegroups.com; posting-host=129.241.61.254; posting-account=WJxULg0AAAAyKfaVqxJXX1GMV-AdIFCn Original-Xref: shelby.stanford.edu gnu.emacs.help:147078 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42682 Archived-At: On Apr 14, 1:49 pm, Eli Zaretskii wrote: > > From: aril...@gmail.com > > Date: 14 Apr 2007 03:25:26 -0700 > > > A friend spent quite some time on doing a color customization which I > > am quite happy with (though if anyone has tips for other color schemes > > that they think would work better, feel free to comment). The problem > > is that when I create a new window with C-x-5-2, the background color > > for some reason changes from black to white, making a lot of the text > > almost unreadable. > > This happens because you used incorrect customizations: > > > (set-foreground-color "DarkGoldenrod1") > > (set-background-color "black") > > These apply only to the initial frame. When you create other frames > with `C-x 5 2', their colors and faces use the default values. See > the documentation of these two functions (accessible with `C-h f'). > > Instead, use something like this: > > (add-to-list 'default-frame-alist '(foreground-color . "DarkGoldenrod1")) > > and similarly for the background color. > > This is explained in the Emacs user manual, in the node named > "Creating Frames". I suggest to take a few minutes and read tfhat. Thanks a million, that worked like a charm. And I apologise for not having found the node in the manual; it did indeed explain it quite straightforwardly.