help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default font when creating a new frame


From: Christian Kellermann
Subject: Re: Default font when creating a new frame
Date: Thu, 12 Jul 2012 11:45:13 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

XeCycle <XeCycle@Gmail.com> writes:

> Christian Kellermann <ckeen@pestilenz.org> writes:
>
>> Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>>>> Why is set-default-font not enough and what should I use instead?
>>>
>>> Maybe because GNU Emacs is using initial-frame-alist and
>>> default-frame-alist. This can lead to different settings applied to
>>> the first, initial, frame and others applied to the other frames. I
>>> think
>>>
>>>     (setq initial-frame-alist default-frame-alist)
>>
>> Hm, I have set this as the first statement in my .emacs but it has no
>> effect on the font when opening a new frame.
>
> Afraid you need to set it at last, after value of
> default-frame-alist is settled.

To close this open thread, what I have done to get it work is:

(set-frame-font "Inconsolata-12")
(add-to-list 'default-frame-alist '(font . "Inconsolata-12"))

I guess a variation like

(add-to-list 'default-frame-alist '(font . "Inconsolata-12"))
(setq initial-frame-alist default-frame-alist)

might work also.

Thanks for all your hints!

Christian


reply via email to

[Prev in Thread] Current Thread [Next in Thread]