[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: color customisation and multiple windows
From: |
Tim X |
Subject: |
Re: color customisation and multiple windows |
Date: |
Sun, 15 Apr 2007 14:07:17 +1000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) |
arildna@gmail.com writes:
> On Apr 14, 1:49 pm, Eli Zaretskii <e...@gnu.org> 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