help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: proper setting of default font (and string-handling in elisp?)


From: Tom Roche
Subject: Re: proper setting of default font (and string-handling in elisp?)
Date: Wed, 26 Aug 2009 08:59:14 -0400 (EDT)

Tom Roche Tue, 25 Aug 2009 22:11:44 -0400 (EDT)
>> [I'm] wanting to set my default font for every frame[,] in init.el.
>> How to do so properly?

Peter Dyballa Wed, 26 Aug 2009 09:44:36 +0200
> (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")
>         '(top . 136) '(left . 666) '(width . 100) '(height . 57)
>       ) initial-frame-alist))

> There is also default-frame-alist.

Thanks, that looks good. However I'm still confused about

* font syntax: how to translate the font spec format that works for
  set-frame-font (e.g. "Courier 10 Pitch-9") to that used for
  initial-frame-alist and default-frame-alist (e.g.
  "fontset-10pt_lucidatypewriter")? I've looked @, e.g.,

http://www.gnu.org/software/emacs/manual/html_node/elisp/Initial-Parameters.html

  but I'm not seeing where these font-related formats are documented.
  Is there a .el file @ which I should look?

* variable usage: how to set the font spec in one or more variables
  and use those in the list? E.g., presuming the string inside the
  variable was correct, would either of

(font . tlr-default-font)
(font . 'tlr-default-font)

  be appropriate? I'm sure it's in the GNU Emacs Lisp Reference Manual
  somewhere, but am not sure where to look.

TIA, Tom Roche <Tom_Roche@pobox.com>




reply via email to

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