From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: set default font for new frame Date: Wed, 28 Mar 2007 21:21:23 -0500 Organization: UseNetServer.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175135925 32168 80.91.229.12 (29 Mar 2007 02:38:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 02:38:45 +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 Mar 29 04:38:39 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 1HWkX7-00084M-H1 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 04:38:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWkZe-0006KL-8g for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 21:41:14 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!router1.astraweb.com!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!DIALUPUSA.NET!not-for-mail User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 21 Original-X-Trace: b024e460b22b5a13a83f713676 Original-Xref: shelby.stanford.edu gnu.emacs.help:146660 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:42264 Archived-At: ssSslang wrote: > 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. At least under ver. 21.3 you can add window frame parameters to the make-frame function. I have this in my .emacs (for a second frame with a non-proportional font): (make-frame '((name . "courier") (top . 1) (left . 1) (width . 98) (height . 17) (visibility . icon) ; nil or icon (font . "-outline-Courier New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1"))) (select-frame-by-name "courier") ;;Doesn't work in 22.0. Elisp manual (29.3.3 Window Frame Parameters) says somewhere that some optional arguments are semi-obsolete. Font is only mentioned under color parameters.