unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How can Emacs tell if it's started with Xwindow?
@ 2003-05-15 14:43 Wang Yin
  2003-05-15 14:37 ` Lute Kamstra
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Wang Yin @ 2003-05-15 14:43 UTC (permalink / raw)


Hi,

I want to define some font in my .emacs file as:

(create-fontset-from-fontset-spec
 "-adobe-courier-medium-r-*-*-14-*-*-*-*-*-fontset-wangyin,
	chinese-gb2312:-*-simsun-medium-r-*--16-*-*-*-*-*-gbk-0,
       	mule-unicode-0100-24ff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1,
	korean-ksc5601:-*-medium-r-normal-*-16-*-ksc5601*-*,
        chinese-cns11643-5:-*-simsun-medium-r-*--16-*-*-*-*-*-gbk-0,
        chinese-cns11643-6:-*-simsun-medium-r-*--16-*-*-*-*-*-gbk-0,
        chinese-cns11643-7:-*-simsun-medium-r-*--16-*-*-*-*-*-gbk-0" t)

(setq default-frame-alist
        (append
        '((font . "fontset-wangyin"))
        default-frame-alist))


I think this is more flexible than put this stuff in
.Xdefaults.

But I have a problem now. If Emacs is started with -nw
switch, it will report error.

How can I add a predicate to tell Emacs if we are in X?


-- 
Wang Yin
DA Lab, Tsinghua University,
100084
Beijing China

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-05-16  1:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 14:43 How can Emacs tell if it's started with Xwindow? Wang Yin
2003-05-15 14:37 ` Lute Kamstra
2003-05-15 15:24 ` William D. Colburn (aka Schlake)
2003-05-15 17:43   ` Niels Freimann
2003-05-15 17:11 ` Benjamin Riefenstahl
2003-05-16  1:17 ` It's me FKtPp ;)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).