unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Herbert Euler" <herberteuler@hotmail.com>
To: sssslang@163.com, help-gnu-emacs@gnu.org
Subject: RE: set default font for new frame
Date: Wed, 28 Mar 2007 18:45:46 +0800	[thread overview]
Message-ID: <BAY143-F26FD68685D0B200243ECB2DA6D0@phx.gbl> (raw)
In-Reply-To: <87hcs5bqf8.fsf@gmail.com>

>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/

  reply	other threads:[~2007-03-28 10:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-28 10:42 set default font for new frame ssSslang
2007-03-28 10:45 ` Herbert Euler [this message]
2007-03-28 11:41   ` Peter Dyballa
     [not found] <mailman.1523.1175078672.7795.help-gnu-emacs@gnu.org>
2007-03-29  2:21 ` B. T. Raven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY143-F26FD68685D0B200243ECB2DA6D0@phx.gbl \
    --to=herberteuler@hotmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sssslang@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).