From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Roche Newsgroups: gmane.emacs.help Subject: Re: proper setting of default font (and string-handling in elisp?) Date: Wed, 26 Aug 2009 08:59:14 -0400 (EDT) Message-ID: <20090826125914.5A87A1405BAA6@cedar.isis.unc.edu> Reply-To: help-gnu-emacs@gnu.org, Tom Roche NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1251291976 27886 80.91.229.12 (26 Aug 2009 13:06:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 13:06:16 +0000 (UTC) To: help-gnu-emacs@gnu.org, Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 15:06:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgICO-0007dr-RL for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Aug 2009 15:06:01 +0200 Original-Received: from localhost ([127.0.0.1]:49463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgICO-0001UT-5p for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Aug 2009 09:06:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgI7Z-0007uQ-Lw for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 09:01:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgI7U-0007tY-TN for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 09:01:00 -0400 Original-Received: from [199.232.76.173] (port=36854 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgI7S-0007tN-Js for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 09:00:55 -0400 Original-Received: from cedar.isis.unc.edu ([152.2.3.72]:19250) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgI7S-0007vn-8C for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 09:00:54 -0400 Original-Received: by cedar.isis.unc.edu (Postfix, from userid 155088) id 5A87A1405BAA6; Wed, 26 Aug 2009 08:59:14 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67556 Archived-At: 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