From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Water Lin Newsgroups: gmane.emacs.help Subject: Re: Why my font setting changes? Date: Thu, 26 Nov 2009 09:50:45 +0800 Organization: A poorly-installed InterNetNews site Message-ID: <87d436rr4a.fsf@ymail.invalid> References: <87aaybl613.fsf@ymail.invalid> <87zl6b7xd6.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259306951 15621 80.91.229.12 (27 Nov 2009 07:29:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2009 07:29:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 27 08:29:04 2009 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 1NDvGK-0004KH-3o for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Nov 2009 08:29:04 +0100 Original-Received: from localhost ([127.0.0.1]:45207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDvGJ-00040o-Fc for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Nov 2009 02:29:03 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!bloom-beacon.mit.edu!61.160.235.197.MISMATCH!www.shinco.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 119.131.176.18 Original-X-Trace: www.shinco.com 1259200245 2038 119.131.176.18 (26 Nov 2009 01:50:45 GMT) Original-X-Complaints-To: news@www.shinco.com Original-NNTP-Posting-Date: Thu, 26 Nov 2009 01:50:45 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:NIqZIEwYurdqBW6xDEXImTT3Vcg= Original-Xref: news.stanford.edu gnu.emacs.help:175062 X-Mailman-Approved-At: Fri, 27 Nov 2009 02:20:57 -0500 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:70170 Archived-At: pjb@informatimago.com (Pascal J. Bourguignon) writes: > Water Lin writes: > >> I need to open some Emacs windows for better editing performances. One >> for normal text editing and the other for ECB coding. >> >> But I don't know why my Emacs font changes when I use command >> M-x new-frame to open a new Emacs frame. >> >> I just don't like the font Emacs using for my new frame. How can I set >> this? > > You need to set the default frame parameters: > > (require 'cl) > (let ((font-cell (assoc 'font default-frame-alist))) > (if font-cell > (setf (cdr font-cell) "your-font") > (setf default-frame-alist (acons 'font "your-font" default-frame-alist)))) > > > Or just M-x customize-variable RET default-frame-alist RET OK. Thanks a lot Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: WaterLin@ymail.com