all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Set default font for all frames
@ 2009-08-01  3:43 Richard Hoskins
  2009-08-01  6:38 ` Daniel Pittman
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Richard Hoskins @ 2009-08-01  3:43 UTC (permalink / raw
  To: help-gnu-emacs


I have this in my init.el:

(set-frame-font "Envy Code R-18")

But when I make a new frame, Monoco is used.  How can I set a default
font so that all new frames respect the setting?

Using GNU Emacs 23.1.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46)

Thank you.


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

* Re: Set default font for all frames
  2009-08-01  3:43 Set default font for all frames Richard Hoskins
@ 2009-08-01  6:38 ` Daniel Pittman
  2009-08-01  7:12 ` CHENG Gao
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Pittman @ 2009-08-01  6:38 UTC (permalink / raw
  To: help-gnu-emacs

Richard Hoskins <rich@Goodnight.local> writes:

> I have this in my init.el:
> (set-frame-font "Envy Code R-18")
> But when I make a new frame, Monoco is used.  How can I set a default
> font so that all new frames respect the setting?

`set-default-font'

Regards,
        Daniel
-- 
✣ Daniel Pittman            ✉ daniel@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons





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

* Re: Set default font for all frames
  2009-08-01  3:43 Set default font for all frames Richard Hoskins
  2009-08-01  6:38 ` Daniel Pittman
@ 2009-08-01  7:12 ` CHENG Gao
  2009-08-01  7:32 ` Peter Dyballa
       [not found] ` <mailman.3625.1249111939.2239.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 5+ messages in thread
From: CHENG Gao @ 2009-08-01  7:12 UTC (permalink / raw
  To: help-gnu-emacs

*On Fri, 31 Jul 2009 23:43:39 -0400
* Also sprach Richard Hoskins <rich@Goodnight.local>:

> I have this in my init.el:
>
> (set-frame-font "Envy Code R-18")
>
> But when I make a new frame, Monoco is used.  How can I set a default
> font so that all new frames respect the setting?
>
> Using GNU Emacs 23.1.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46)
>
> Thank you.
>

I use (in my init.el):

,----
| (set-frame-font "-apple-STHeiti-medium-normal-normal-*-18-*-*-*-p-0-iso10646-1")
`----


You can do M-x set-frame-font and use TAB to get font list, and then
copy name of your favorite font and put into init.el.

HTH,


-- 
Nosce te ipsum





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

* Re: Set default font for all frames
  2009-08-01  3:43 Set default font for all frames Richard Hoskins
  2009-08-01  6:38 ` Daniel Pittman
  2009-08-01  7:12 ` CHENG Gao
@ 2009-08-01  7:32 ` Peter Dyballa
       [not found] ` <mailman.3625.1249111939.2239.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2009-08-01  7:32 UTC (permalink / raw
  To: Richard Hoskins; +Cc: help-gnu-emacs


Am 01.08.2009 um 05:43 schrieb Richard Hoskins:

> when I make a new frame, Monoco is used


	(setq initial-frame-alist
	  (append (list
	    '(border-color      . "#4e3832")
	    '(foreground-color  . "grey10")
	    '(background-color  . "AliceBlue")
	    '(active-alpha      . 0.875)
	    '(inactive-alpha    . 0.75)
	    '(font . "fontset-10pt_lucidatypewriter")
;	    '(font . "Envy Code R-18")
	    '(top . 136) '(left . 666) '(width . 100) '(height . 57)
	  ) initial-frame-alist))

And there is also default-frame-alist for all (other) frames.

--
Greetings

   Pete

For some reason, this fortune reminds everyone of Marvin Zelkowitz.







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

* Re: Set default font for all frames
       [not found] ` <mailman.3625.1249111939.2239.help-gnu-emacs@gnu.org>
@ 2009-08-01 10:27   ` Richard Riley
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Riley @ 2009-08-01 10:27 UTC (permalink / raw
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 01.08.2009 um 05:43 schrieb Richard Hoskins:
>
>> when I make a new frame, Monoco is used
>
>
> 	(setq initial-frame-alist
> 	  (append (list
> 	    '(border-color      . "#4e3832")
> 	    '(foreground-color  . "grey10")
> 	    '(background-color  . "AliceBlue")
> 	    '(active-alpha      . 0.875)
> 	    '(inactive-alpha    . 0.75)
> 	    '(font . "fontset-10pt_lucidatypewriter")
> ;	    '(font . "Envy Code R-18")
> 	    '(top . 136) '(left . 666) '(width . 100) '(height . 57)
> 	  ) initial-frame-alist))
>
> And there is also default-frame-alist for all (other) frames.
>

Whats the name of the function to throw out the current display settings
as X resources?


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

end of thread, other threads:[~2009-08-01 10:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-01  3:43 Set default font for all frames Richard Hoskins
2009-08-01  6:38 ` Daniel Pittman
2009-08-01  7:12 ` CHENG Gao
2009-08-01  7:32 ` Peter Dyballa
     [not found] ` <mailman.3625.1249111939.2239.help-gnu-emacs@gnu.org>
2009-08-01 10:27   ` Richard Riley

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.