From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: color customisation and multiple windows Date: Sun, 15 Apr 2007 14:07:17 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87y7kuuvpm.fsf@lion.rapttech.com.au> References: <1176546326.810613.249810@e65g2000hsc.googlegroups.com> <1176561098.360806.85690@y5g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176611835 30297 80.91.229.12 (15 Apr 2007 04:37:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Apr 2007 04:37:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 15 06:37:08 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 1HcwU7-00036p-9f for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Apr 2007 06:37:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcwYY-0004eW-M2 for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Apr 2007 00:41:42 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!router1.astraweb.com!sn-xt-sjc-04!sn-xt-sjc-01!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:xIFH1tCGe+nPML8XmO2IDQ/7XOk= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 45 Original-Xref: shelby.stanford.edu gnu.emacs.help:147091 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:42695 Archived-At: arildna@gmail.com writes: > 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. > You might also want to check out the color-themes.el package. It provides a lot of different themes and you can switch between them 'on the fly'. It also shows a way of defining a new theme and including it etc. Tim -- tcross (at) rapttech dot com dot au