From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Re: How to get consistent emacs background color Date: Tue, 14 Oct 2008 10:25:07 +0200 Organization: GNU's Not UNIX! Message-ID: <200810140825.m9E8P7ce003933@zogzog.maillard.mobi> References: <54bd924d-0606-48bd-95cf-c38167245212@g61g2000hsf.googlegroups.com> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223981887 29586 80.91.229.12 (14 Oct 2008 10:58:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 10:58:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "yinglcs@gmail.com" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 12:59:05 2008 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 1Kphc2-0007PD-Gc for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 12:58:50 +0200 Original-Received: from localhost ([127.0.0.1]:49311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kphay-0002ib-3N for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 06:57:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KphCU-0003t7-Qa for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KphCQ-0003rS-NT for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:25 -0400 Original-Received: from [199.232.76.173] (port=40145 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KphCP-0003q8-H4 for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:21 -0400 Original-Received: from master.uucpssh.org ([193.218.105.66]:46288) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KphCI-00068I-VR for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 06:32:15 -0400 Original-Received: by master.uucpssh.org (Postfix, from userid 10) id 9A56FF295B; Tue, 14 Oct 2008 12:28:49 +0200 (CEST) Original-Received: from zogzog.maillard.mobi (IDENT:1000@localhost [127.0.0.1]) by zogzog.maillard.mobi (8.14.2/8.13.8) with ESMTP id m9E8P8tA003934; Tue, 14 Oct 2008 10:25:08 +0200 Original-Received: (from xma@localhost) by zogzog.maillard.mobi (8.14.2/8.13.8/Submit) id m9E8P7ce003933; Tue, 14 Oct 2008 10:25:07 +0200 In-reply-to: <54bd924d-0606-48bd-95cf-c38167245212@g61g2000hsf.googlegroups.com> (yinglcs@gmail.com) User-Agent: Rmail in GNU Emacs 23.0.60.12 on GNU/Linux Jabber-ID: xma01@jabber.fr X-uucpssh: Found to be clean X-uucpssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.4, required 4.6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60, SPF_HELO_PASS -0.00) X-uucpssh-From: xma@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:58754 Archived-At: hi, I have the following line in my .emacs: (set-background-color "ivory2") (set-foreground-color "black") initially , the color of emacs is correct. But when I spawn a new emacs window (C-x 5 2). the background of that emacs is white. Can you please tell me how can I fix that? Kevin gave you the answer to fix it. Note that C-h f set-background-color RET would have told you why only the selected frame had the right color: set-background-color is an interactive compiled Lisp function in `frame.el'. (set-background-color COLOR-NAME) Set the background color of the selected frame to COLOR-NAME. When called interactively, prompt for the name of the color to use. To get the frame's current background color, use `frame-parameters'. Regards Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org