From: Wang Yin <wang-y01@mails.tsinghua.edu.cn>
Subject: How can Emacs tell if it's started with Xwindow?
Date: 15 May 2003 22:43:53 +0800 [thread overview]
Message-ID: <phn0hotgly.fsf@wangyin.com> (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
next reply other threads:[~2003-05-15 14:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 14:43 Wang Yin [this message]
2003-05-15 14:37 ` How can Emacs tell if it's started with Xwindow? 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 ;)
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=phn0hotgly.fsf@wangyin.com \
--to=wang-y01@mails.tsinghua.edu.cn \
/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.
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).