[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default font settings

From: Kevin Rodgers
Subject: Re: default font settings
Date: Tue, 07 Oct 2003 12:18:48 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Vincenzo Di Somma wrote:

I use (set-default-font "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1") in my .emacs to set te font I like, but when I open another window with C x 5-2 emacs use the default font instead of my one, how can I fix it ?

The doc string for set-default-font explicitly says that it only applies
to the current frame.

The "Font Specification Options" section of the Emacs manual says:

|    By default, Emacs displays text in the font named `9x15', which
| makes each character nine pixels wide and fifteen pixels high.  You can
| specify a different font on your command line through the option `-fn
| NAME' (or `--font', which is an alias for `-fn').
| `-fn NAME'
| `--font=NAME'
|      Use font NAME as the default font.
| You can also specify the font in your `.Xdefaults' file:
|      emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1

I prefer the .Xdefaults method, although I use the Emacs*Font class spec
instead of the emacs.font instance spec.

Or, you could do this in your .emacs:

(let ((font "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1"))
  (setq initial-frame-alist
        (cons `(font . ,font) initial-frame-alist))
  (setq default-frame-alist
        (cons `(font . ,font) default-frame-alist)))

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]