unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* set default font - globally
@ 2007-10-19  7:30 Sebastian Kaps
  2007-10-19  8:54 ` Peter Dyballa
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Sebastian Kaps @ 2007-10-19  7:30 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

How can I set the default font for all current and future frames?
set-default-font only applies to the current frame.

-- 
Ciao, Sebastian

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

* Re: set default font - globally
  2007-10-19  7:30 set default font - globally Sebastian Kaps
@ 2007-10-19  8:54 ` Peter Dyballa
  2007-10-19 13:36 ` Joel J. Adamson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2007-10-19  8:54 UTC (permalink / raw)
  To: Sebastian Kaps; +Cc: help-gnu-emacs


Am 19.10.2007 um 09:30 schrieb Sebastian Kaps:

> How can I set the default font for all current and future frames?

On the command line (emacs --help can help), as an X resource, or in  
some init file:

	(setq default-frame-alist '(
	 '(font . "-*-*-medium-r-normal--10-*-*-*-*-*-fontset-osaka")))
	
	(add-to-list 'default-frame-alist
	 '(font . "fontset-10pt_bitstream_courier")))

--
Mit friedvollen Grüßen

   Pete

Mit Jazz statt Bomben gegen die Taliban!

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

* Re: set default font - globally
  2007-10-19  7:30 set default font - globally Sebastian Kaps
  2007-10-19  8:54 ` Peter Dyballa
@ 2007-10-19 13:36 ` Joel J. Adamson
  2007-10-19 15:42   ` Joel J. Adamson
  2007-10-19 15:11 ` Amy Templeton
       [not found] ` <mailman.2288.1192784299.18990.help-gnu-emacs@gnu.org>
  3 siblings, 1 reply; 14+ messages in thread
From: Joel J. Adamson @ 2007-10-19 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

Sebastian Kaps <seb@toyland.sauerland.de> writes:

> Hi!
>
> How can I set the default font for all current and future frames?
> set-default-font only applies to the current frame.
(add-to-list 'default-frame-alist '(font . "dejavu sans mono"))
(add-to-list 'default-frame-alist '(background-color . "black"))
(add-to-list 'default-frame-alist '(foreground-color . "white"))

Joel
-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

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

* Re: set default font - globally
  2007-10-19  7:30 set default font - globally Sebastian Kaps
  2007-10-19  8:54 ` Peter Dyballa
  2007-10-19 13:36 ` Joel J. Adamson
@ 2007-10-19 15:11 ` Amy Templeton
  2007-10-20 12:26   ` Sean Sieger
       [not found]   ` <mailman.2347.1192883207.18990.help-gnu-emacs@gnu.org>
       [not found] ` <mailman.2288.1192784299.18990.help-gnu-emacs@gnu.org>
  3 siblings, 2 replies; 14+ messages in thread
From: Amy Templeton @ 2007-10-19 15:11 UTC (permalink / raw)
  To: help-gnu-emacs

Sebastian Kaps <seb@toyland.sauerland.de> wrote:
> How can I set the default font for all current and future frames?
> set-default-font only applies to the current frame.

In your ~/.Xresources, just add one line:

-----------------------------|CODE|--------------------------------
Emacs.font:  -gnu-unifont-medium-r-normal--0-0-75-75-c-0-iso10646-1
-------------------------------------------------------------------

...substituting your preferred font. Then do `xrdb -merge ~/.Xresources' to
tell X about your new preference.

Amy

-- 
Q: How many bureaucrats does it take to screw in a light bulb?
A: Two. One to assure everyone that everything possible is being done while
   the other screws the bulb into the water faucet.

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

* Re: set default font - globally
  2007-10-19 13:36 ` Joel J. Adamson
@ 2007-10-19 15:42   ` Joel J. Adamson
  0 siblings, 0 replies; 14+ messages in thread
From: Joel J. Adamson @ 2007-10-19 15:42 UTC (permalink / raw)
  To: help-gnu-emacs

jadamson@partners.org (Joel J. Adamson) writes:

> Sebastian Kaps <seb@toyland.sauerland.de> writes:
>
>> Hi!
>>
>> How can I set the default font for all current and future frames?
>> set-default-font only applies to the current frame.
> (add-to-list 'default-frame-alist '(font . "dejavu sans mono"))
> (add-to-list 'default-frame-alist '(background-color . "black"))
> (add-to-list 'default-frame-alist '(foreground-color . "white"))

Hi, I forgot to mention that I use Emacs from CVS with Xft.  Try
substituting *-*&etc for "dejavu sans mono"

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

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

* Re: set default font - globally
       [not found] ` <mailman.2288.1192784299.18990.help-gnu-emacs@gnu.org>
@ 2007-10-19 16:58   ` Sebastian Kaps
  2007-10-19 19:44     ` Peter Dyballa
       [not found]     ` <mailman.2330.1192823101.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Sebastian Kaps @ 2007-10-19 16:58 UTC (permalink / raw)
  To: help-gnu-emacs

// Peter Dyballa writes:


> 	(setq default-frame-alist '(
> 	 '(font . "-*-*-medium-r-normal--10-*-*-*-*-*-fontset-osaka")))
> 	(add-to-list 'default-frame-alist
> 	 '(font . "fontset-10pt_bitstream_courier")))

Thanks, that does it!

-- 
Ciao, Sebastian

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

* Re: set default font - globally
  2007-10-19 16:58   ` Sebastian Kaps
@ 2007-10-19 19:44     ` Peter Dyballa
       [not found]     ` <mailman.2330.1192823101.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2007-10-19 19:44 UTC (permalink / raw)
  To: Sebastian Kaps; +Cc: help-gnu-emacs


Am 19.10.2007 um 18:58 schrieb Sebastian Kaps:

> Thanks, that does it!

There is also initial-frame-alist ...

--
Mit friedvollen Grüßen

   Pete

The day Microsoft makes something that doesn't suck
is the day they start selling vacuum cleaners.
                                     Ernest Jan Plugge

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

* Re: set default font - globally
       [not found]     ` <mailman.2330.1192823101.18990.help-gnu-emacs@gnu.org>
@ 2007-10-19 21:28       ` Sebastian Kaps
  2007-10-19 21:48         ` Peter Dyballa
       [not found]         ` <mailman.2331.1192830539.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Sebastian Kaps @ 2007-10-19 21:28 UTC (permalink / raw)
  To: help-gnu-emacs

// Peter Dyballa writes:

> There is also initial-frame-alist ...

I know. I found it in my XEmacs configuration files. I have now set
,----
| default-frame-alist '((width . 115) (height . 50) (font . "DejaVu Sans Mono-11"))
| initial-frame-alist '((width . 115) (height . 50) (font . "DejaVu Sans Mono-11"))
`----

And it works as expected. One step closer to dropping XEmacs in favour
of Emacs :-)

-- 
Ciao, Sebastian

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

* Re: set default font - globally
  2007-10-19 21:28       ` Sebastian Kaps
@ 2007-10-19 21:48         ` Peter Dyballa
       [not found]         ` <mailman.2331.1192830539.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2007-10-19 21:48 UTC (permalink / raw)
  To: Sebastian Kaps; +Cc: help-gnu-emacs


Am 19.10.2007 um 23:28 schrieb Sebastian Kaps:

> | default-frame-alist '((width . 115) (height . 50) (font . "DejaVu  
> Sans Mono-11"))
> | initial-frame-alist '((width . 115) (height . 50) (font . "DejaVu  
> Sans Mono-11"))

I can't see much sense in making both the same ... I mean, the  
initial setting is meant as an exception from the default.

--
Mit friedvollen Grüßen

   Pete

"I wouldn't recommend sex, drugs or insanity for everyone, but  
they've always worked for me."
                                           -- Hunter S. Thompson

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

* Re: set default font - globally
       [not found]         ` <mailman.2331.1192830539.18990.help-gnu-emacs@gnu.org>
@ 2007-10-19 22:29           ` Sebastian Kaps
  0 siblings, 0 replies; 14+ messages in thread
From: Sebastian Kaps @ 2007-10-19 22:29 UTC (permalink / raw)
  To: help-gnu-emacs

// Peter Dyballa writes:

> I can't see much sense in making both the same ... I mean, the  initial
> setting is meant as an exception from the default.

You're right. Thanks.

-- 
Ciao, Sebastian

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

* Re: set default font - globally
  2007-10-19 15:11 ` Amy Templeton
@ 2007-10-20 12:26   ` Sean Sieger
  2007-10-20 14:17     ` Peter Dyballa
  2007-10-20 14:55     ` Peter Dyballa
       [not found]   ` <mailman.2347.1192883207.18990.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 14+ messages in thread
From: Sean Sieger @ 2007-10-20 12:26 UTC (permalink / raw)
  To: help-gnu-emacs

   ...substituting your preferred font. Then do `xrdb -merge ~/.Xresources' to
   tell X about your new preference.

When is `merge' preferrable over the default `-load'?  And yes, this
question after reading the manpage.

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

* Re: set default font - globally
  2007-10-20 12:26   ` Sean Sieger
@ 2007-10-20 14:17     ` Peter Dyballa
  2007-10-20 14:55     ` Peter Dyballa
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2007-10-20 14:17 UTC (permalink / raw)
  To: Sean Sieger; +Cc: help-gnu-emacs


Am 20.10.2007 um 14:26 schrieb Sean Sieger:

> When is `merge' preferrable over the default `-load'?  And yes, this
> question after reading the manpage.

Merge merges, load overwrites – but only in memory.

--
Greetings

   Pete

"Don't just do something, sit there."

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

* Re: set default font - globally
       [not found]   ` <mailman.2347.1192883207.18990.help-gnu-emacs@gnu.org>
@ 2007-10-20 14:34     ` Sebastian Kaps
  0 siblings, 0 replies; 14+ messages in thread
From: Sebastian Kaps @ 2007-10-20 14:34 UTC (permalink / raw)
  To: help-gnu-emacs

// Sean Sieger writes:

> When is `merge' preferrable over the default `-load'?  And yes, this
> question after reading the manpage.

Merge adds new values to the already existing ones, replacing old values
if necessary. Load drops all old values and only adds the ones from the
specified file. If you use different files to set X resources, you
usually don't want "-load".

-- 
Ciao, Sebastian

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

* Re: set default font - globally
  2007-10-20 12:26   ` Sean Sieger
  2007-10-20 14:17     ` Peter Dyballa
@ 2007-10-20 14:55     ` Peter Dyballa
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2007-10-20 14:55 UTC (permalink / raw)
  To: Sean Sieger; +Cc: help-gnu-emacs


Am 20.10.2007 um 14:26 schrieb Sean Sieger:

> When is `merge' preferrable over the default `-load'?

I was not precise: -merge adds the new ones to the old ones in  
memory, which could overwrite previous settings; and -load  
substitutes the old set with the new one.

--
Greetings

   Pete

When in doubt, use brute force.
                             -- Ken Thompson

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

end of thread, other threads:[~2007-10-20 14:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19  7:30 set default font - globally Sebastian Kaps
2007-10-19  8:54 ` Peter Dyballa
2007-10-19 13:36 ` Joel J. Adamson
2007-10-19 15:42   ` Joel J. Adamson
2007-10-19 15:11 ` Amy Templeton
2007-10-20 12:26   ` Sean Sieger
2007-10-20 14:17     ` Peter Dyballa
2007-10-20 14:55     ` Peter Dyballa
     [not found]   ` <mailman.2347.1192883207.18990.help-gnu-emacs@gnu.org>
2007-10-20 14:34     ` Sebastian Kaps
     [not found] ` <mailman.2288.1192784299.18990.help-gnu-emacs@gnu.org>
2007-10-19 16:58   ` Sebastian Kaps
2007-10-19 19:44     ` Peter Dyballa
     [not found]     ` <mailman.2330.1192823101.18990.help-gnu-emacs@gnu.org>
2007-10-19 21:28       ` Sebastian Kaps
2007-10-19 21:48         ` Peter Dyballa
     [not found]         ` <mailman.2331.1192830539.18990.help-gnu-emacs@gnu.org>
2007-10-19 22:29           ` Sebastian Kaps

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