unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xavier Maillard <xma@gnu.org>
To: "yinglcs@gmail.com" <yinglcs@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get consistent emacs background color
Date: Tue, 14 Oct 2008 10:25:07 +0200	[thread overview]
Message-ID: <200810140825.m9E8P7ce003933@zogzog.maillard.mobi> (raw)
In-Reply-To: <54bd924d-0606-48bd-95cf-c38167245212@g61g2000hsf.googlegroups.com> (yinglcs@gmail.com)

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




      parent reply	other threads:[~2008-10-14  8:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14  1:10 How to get consistent emacs background color yinglcs
2008-10-14  3:31 ` Kevin Rodgers
2008-10-14  8:25 ` Xavier Maillard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810140825.m9E8P7ce003933@zogzog.maillard.mobi \
    --to=xma@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yinglcs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).