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

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

Re: setting the font in .emacs


From: Oliver Scholz
Subject: Re: setting the font in .emacs
Date: Mon, 23 Sep 2002 02:31:32 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Keith <address@hidden> writes:

>>>>>> "os" == Oliver Scholz <address@hidden> writes:
>
>     os> (set-face-font 'default
>     os> "-b&h-lucidatypewriter-medium-r-*-*-*-140-*-*-*-*-iso8859-1")
>
>
> That was something I had not yet found out, but actually solved one of
> my small problems. Tried it and it worked perfectly.
>
> Unfortunately I use emacs at the cli as well and this generates an
> error if emacs is started outside of X. How should it be modified to
> only apply ix X is running, there by not generating the error?
[...]

Yes, you can check for various display capabilities with the
`display-.*-p'-functions. In this case `display-multi-font-p' would be
the appropriate one:

(when (display-multi-font-p)
  (set-face-font ...))

    -- Oliver

-- 
2 Vendémiaire an 211 de la Révolution
Happy new year 211!
Liberté, Egalité, Fraternité!


reply via email to

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