From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.help Subject: RE: set default font for new frame Date: Wed, 28 Mar 2007 18:45:46 +0800 Message-ID: References: <87hcs5bqf8.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1175078778 25219 80.91.229.12 (28 Mar 2007 10:46:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 10:46:18 +0000 (UTC) To: sssslang@163.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 12:46:11 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 1HWVfN-0006X6-3G for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 12:46:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWVhp-00033m-0j for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 05:48:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWVhb-00033e-KJ for help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 06:48:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWVha-000330-0C for help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 06:48:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWVhZ-00032q-PD for help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 05:48:25 -0500 Original-Received: from bay0-omc2-s30.bay0.hotmail.com ([65.54.246.166]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWVf6-0004yd-SW for help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 06:45:53 -0400 Original-Received: from hotmail.com ([65.55.154.106]) by bay0-omc2-s30.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Wed, 28 Mar 2007 03:45:51 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 28 Mar 2007 03:45:51 -0700 Original-Received: from 65.55.154.123 by by143fd.bay143.hotmail.msn.com with HTTP; Wed, 28 Mar 2007 10:45:46 GMT X-Originating-IP: [202.165.107.100] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: <87hcs5bqf8.fsf@gmail.com> X-OriginalArrivalTime: 28 Mar 2007 10:45:51.0508 (UTC) FILETIME=[40E95D40:01C77126] X-detected-kernel: Windows 2000 SP4, XP SP1+ 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:42233 Archived-At: >Hi there, I wonder how to set the new frame's font. Now I had >(set-default-font "MyFontName") written in ~/.emacs. I can see the right >font when I start emacs. But the font changed after I called C-x 5 2 to >make a new frame. Could someone told me a solution? Thanks. You can try something like this: (add-to-list 'default-frame-alist '(font . FONT-NAME)) Where FONT-NAME is the name of your prefered font. Regards, Guanpeng Xu _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/