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

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

setting default font name


From: Haines Brown
Subject: setting default font name
Date: Sun, 18 May 2014 07:36:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

I have several different ways to start emacs 24 according to different
functions. They are started with scripts that point to different init
files. For example, in one script I have:

           emacs -q -l ~/.emacsUtil $1

I want to define the default font for this instance of emacs, and so try
the lines taken from EmacsWiki:

  (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.

Haines Brown


reply via email to

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