unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting fonts in new frames
@ 2007-01-03 15:00 Ewen Cartwright
  2007-01-03 19:26 ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: Ewen Cartwright @ 2007-01-03 15:00 UTC (permalink / raw)


Hi all,

I set the font for my emacs sessions (ntemacs-22) in my .emacs file
thus:

(set-default-font "-*-Lucida Sans
Typewriter-normal-r-*-*-12-*-*-*-c-*-*-iso8859-1")

Which works fine. But every time I open a new frame I get plain old
Courier. I've looked for frame-opening hooks where I can run
set-default-font to get my own font choice in them but nothing I've
tried seems to work. Anyone know how I can achieve this?

TIA,

/ewen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting fonts in new frames
  2007-01-03 15:00 Setting fonts in new frames Ewen Cartwright
@ 2007-01-03 19:26 ` Kevin Rodgers
  2007-01-03 21:13   ` Ewen Cartwright
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Rodgers @ 2007-01-03 19:26 UTC (permalink / raw)


Ewen Cartwright wrote:
> I set the font for my emacs sessions (ntemacs-22) in my .emacs file
> thus:
> 
> (set-default-font "-*-Lucida Sans
> Typewriter-normal-r-*-*-12-*-*-*-c-*-*-iso8859-1")
> 
> Which works fine. But every time I open a new frame I get plain old
> Courier. I've looked for frame-opening hooks where I can run
> set-default-font to get my own font choice in them but nothing I've
> tried seems to work. Anyone know how I can achieve this?

(add-to-list 'default-frame-alist
	     '(font . "-*-Lucida Sans 
Typewriter-normal-r-*-*-12-*-*-*-c-*-*-iso8859-1"))

-- 
Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Setting fonts in new frames
  2007-01-03 19:26 ` Kevin Rodgers
@ 2007-01-03 21:13   ` Ewen Cartwright
  0 siblings, 0 replies; 3+ messages in thread
From: Ewen Cartwright @ 2007-01-03 21:13 UTC (permalink / raw)


Thanks very much -- don't know how I missed that... 

-----Original Message-----
From: help-gnu-emacs-bounces+ejc=abcam.com@gnu.org
[mailto:help-gnu-emacs-bounces+ejc=abcam.com@gnu.org] On Behalf Of Kevin
Rodgers
Sent: 03 January 2007 19:26
To: help-gnu-emacs@gnu.org
Subject: Re: Setting fonts in new frames

Ewen Cartwright wrote:
> I set the font for my emacs sessions (ntemacs-22) in my .emacs file
> thus:
> 
> (set-default-font "-*-Lucida Sans
> Typewriter-normal-r-*-*-12-*-*-*-c-*-*-iso8859-1")
> 
> Which works fine. But every time I open a new frame I get plain old 
> Courier. I've looked for frame-opening hooks where I can run 
> set-default-font to get my own font choice in them but nothing I've 
> tried seems to work. Anyone know how I can achieve this?

(add-to-list 'default-frame-alist
	     '(font . "-*-Lucida Sans
Typewriter-normal-r-*-*-12-*-*-*-c-*-*-iso8859-1"))

--
Kevin



_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-03 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-03 15:00 Setting fonts in new frames Ewen Cartwright
2007-01-03 19:26 ` Kevin Rodgers
2007-01-03 21:13   ` Ewen Cartwright

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).