From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: color customisation and multiple windows Date: Sat, 14 Apr 2007 14:49:12 +0300 Message-ID: References: <1176546326.810613.249810@e65g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1176551392 2231 80.91.229.12 (14 Apr 2007 11:49:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2007 11:49:52 +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 13:49:46 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 1HcglE-0008AW-Mx for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 13:49:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hcgpc-0001w9-1K for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 07:54:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcgpN-0001qt-69 for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 07:54:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcgpI-0001h9-Lb for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 07:53:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcgpI-0001gY-Cb for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 07:53:56 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hcgkt-0004yf-20 for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 07:49:23 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-158-53.inter.net.il [80.230.158.53]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HPG73313 (AUTH halo1); Sat, 14 Apr 2007 14:49:14 +0300 (IDT) In-reply-to: <1176546326.810613.249810@e65g2000hsc.googlegroups.com> (arildna@gmail.com) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:42677 Archived-At: > From: arildna@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 that.