Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why my font setting changes?

0 views
Skip to first unread message

Water Lin

unread,
Nov 24, 2009, 8:58:16 PM11/24/09
to

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?

Thanks

Water Lin

--
Water Lin's notes and pencils: http://en.waterlin.org
Email: Wate...@ymail.com

Pascal J. Bourguignon

unread,
Nov 25, 2009, 4:43:49 AM11/25/09
to
Water Lin <Wate...@ymail.invalid> 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

--
__Pascal Bourguignon__

Water Lin

unread,
Nov 25, 2009, 8:50:45 PM11/25/09
to

OK. Thanks a lot

0 new messages