all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Haines Brown <haines@histomat.net>, help-gnu-emacs@gnu.org
Subject: RE: setting default font name
Date: Sun, 18 May 2014 06:35:16 -0700 (PDT)	[thread overview]
Message-ID: <a5503bc6-0831-4044-8330-815f59f523fc@default> (raw)
In-Reply-To: <87egzrz5c2.fsf@bach.histomat.net>

>   (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 ))
> 
>   But this produces error: "Invalid read syntax: ". in wrong context"
> 
> I try:
>   (set default-font "-bitstream-Courier 10
>     Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1")
> 
> 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-FONT).

* The `font' frame parameter value (i.e., THE-FONT) must be a string:

(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")

The EmacsWiki page you looked at, http://www.emacswiki.org/emacs/SetFonts,
is correct.  You just need to read it a bit more carefully.



  reply	other threads:[~2014-05-18 13:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-18 11:36 setting default font name Haines Brown
2014-05-18 13:35 ` Drew Adams [this message]
     [not found] ` <mailman.1565.1400420140.1147.help-gnu-emacs@gnu.org>
2014-05-18 21:11   ` Haines Brown
2014-05-18 21:57     ` Michael Heerdegen
2014-05-18 22:03     ` Drew Adams
     [not found]     ` <mailman.1582.1400450623.1147.help-gnu-emacs@gnu.org>
2014-05-19 11:09       ` Haines Brown
2014-05-19 13:47         ` Drew Adams
     [not found]         ` <mailman.1604.1400507269.1147.help-gnu-emacs@gnu.org>
2014-05-19 15:05           ` Haines Brown
2014-05-19 15:45             ` Drew Adams
     [not found]             ` <mailman.1615.1400514331.1147.help-gnu-emacs@gnu.org>
2014-05-19 18:56               ` Haines Brown
2014-05-19 20:51                 ` Drew Adams
     [not found]                 ` <mailman.1639.1400532700.1147.help-gnu-emacs@gnu.org>
2014-05-20 10:14                   ` Jacob Gerlach
2014-05-20 10:58                     ` Haines Brown
2014-05-19 19:30 ` Hans BKK
2014-05-20 13:32 ` Hans BKK

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=a5503bc6-0831-4044-8330-815f59f523fc@default \
    --to=drew.adams@oracle.com \
    --cc=haines@histomat.net \
    --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.