From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Kellermann Newsgroups: gmane.emacs.help Subject: Re: Default font when creating a new frame Date: Thu, 12 Jul 2012 11:45:13 +0200 Organization: A noiseless patient Spider Message-ID: <87394xuxcm.fsf@pestilenz.org> References: <87395nrd7l.fsf@pestilenz.org> <87mx3vbq7a.fsf@pestilenz.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342086616 22560 80.91.229.3 (12 Jul 2012 09:50:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2012 09:50:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 12 11:50:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SpG2I-0001zG-4Y for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2012 11:50:14 +0200 Original-Received: from localhost ([::1]:53986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpG2H-0005Ro-25 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2012 05:50:13 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Injection-Info: mx04.eternal-september.org; posting-host="832c2050dd5fdc993151c4c6f02c37ce"; logging-data="24699"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+FCP4wTK3R4sJfF+Yh/9z" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Location: Nuremberg, Germany Cancel-Lock: sha1:SmU1xKbcpx8c/U8wkbCGkJ0sAnQ= sha1:R4Vshfpv5Ca4fxIpPFT5UO6VD3Q= Original-Xref: usenet.stanford.edu gnu.emacs.help:193431 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85814 Archived-At: XeCycle writes: > Christian Kellermann writes: > >> Peter Dyballa 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