From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: setting default font name Date: Sun, 18 May 2014 06:35:16 -0700 (PDT) Message-ID: References: <87egzrz5c2.fsf@bach.histomat.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1400420159 19993 80.91.229.3 (18 May 2014 13:35:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2014 13:35:59 +0000 (UTC) To: Haines Brown , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 18 15:35:53 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wm1Fo-0006Rp-4w for geh-help-gnu-emacs@m.gmane.org; Sun, 18 May 2014 15:35:52 +0200 Original-Received: from localhost ([::1]:43595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm1Fn-0001Ox-Nm for geh-help-gnu-emacs@m.gmane.org; Sun, 18 May 2014 09:35:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm1FT-0001On-RZ for help-gnu-emacs@gnu.org; Sun, 18 May 2014 09:35:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wm1FM-0005zP-8B for help-gnu-emacs@gnu.org; Sun, 18 May 2014 09:35:31 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:36625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm1FM-0005zB-1M for help-gnu-emacs@gnu.org; Sun, 18 May 2014 09:35:24 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4IDZLtD014238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 18 May 2014 13:35:22 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s4IDZKWq008420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 May 2014 13:35:20 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s4IDZISA008379; Sun, 18 May 2014 13:35:20 GMT In-Reply-To: <87egzrz5c2.fsf@bach.histomat.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97735 Archived-At: > (add-to-list 'default-frame-alist 'font . '-bitstream-Courier 10 > Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 )) > (set-face-attribute 'default t :font > -bitstream-Courier 10 > Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 )) >=20 > But this produces error: "Invalid read syntax: ". in wrong context" >=20 > I try: > (set default-font "-bitstream-Courier 10 > Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1") >=20 > and get eror Symbol's value as variable is void: default-font. * Your parens do not match - in either of the examples you gave. * The value to add to list `default-frame-alist' is a cons: (font . THE-FON= T). * The `font' frame parameter value (i.e., THE-FONT) must be a string: (add-to-list 'default-frame-alist '(font .=20 "-bitstream-Courier 10 Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso106= 46-1")) (set-face-attribute 'default t :font "-bitstream-Courier 10 Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso10646= -1") The EmacsWiki page you looked at, http://www.emacswiki.org/emacs/SetFonts, is correct. You just need to read it a bit more carefully.