From: Tom Roche <Tom_Roche@pobox.com>
To: help-gnu-emacs@gnu.org,
Subject: Re: proper setting of default font (and string-handling in elisp?)
Date: Wed, 26 Aug 2009 08:59:14 -0400 (EDT) [thread overview]
Message-ID: <20090826125914.5A87A1405BAA6@cedar.isis.unc.edu> (raw)
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>
next reply other threads:[~2009-08-26 12:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 12:59 Tom Roche [this message]
2009-08-26 13:45 ` proper setting of default font (and string-handling in elisp?) Peter Dyballa
[not found] <mailman.5382.1251252804.2239.help-gnu-emacs@gnu.org>
2009-08-26 5:13 ` Xah Lee
2009-08-26 5:22 ` Xah Lee
-- strict thread matches above, loose matches on Subject: below --
2009-08-26 2:11 Tom Roche
2009-08-26 7:44 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090826125914.5A87A1405BAA6@cedar.isis.unc.edu \
--to=tom_roche@pobox.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.