* Why my font setting changes?
@ 2009-11-25 1:58 Water Lin
2009-11-25 9:43 ` Pascal J. Bourguignon
0 siblings, 1 reply; 3+ messages in thread
From: Water Lin @ 2009-11-25 1:58 UTC (permalink / raw)
To: help-gnu-emacs
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: WaterLin@ymail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why my font setting changes?
2009-11-25 1:58 Why my font setting changes? Water Lin
@ 2009-11-25 9:43 ` Pascal J. Bourguignon
2009-11-26 1:50 ` Water Lin
0 siblings, 1 reply; 3+ messages in thread
From: Pascal J. Bourguignon @ 2009-11-25 9:43 UTC (permalink / raw)
To: help-gnu-emacs
Water Lin <WaterLin@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__
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why my font setting changes?
2009-11-25 9:43 ` Pascal J. Bourguignon
@ 2009-11-26 1:50 ` Water Lin
0 siblings, 0 replies; 3+ messages in thread
From: Water Lin @ 2009-11-26 1:50 UTC (permalink / raw)
To: help-gnu-emacs
pjb@informatimago.com (Pascal J. Bourguignon) writes:
> Water Lin <WaterLin@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
OK. Thanks a lot
Water Lin
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-26 1:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-25 1:58 Why my font setting changes? Water Lin
2009-11-25 9:43 ` Pascal J. Bourguignon
2009-11-26 1:50 ` Water Lin
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).