Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!maytag!maytag!himacdon From: himacdon@maytag.uwaterloo.ca (Hamish Macdonald) Newsgroups: comp.emacs Subject: Re: really easy question Message-ID: <1990Jul7.152543.15750@maytag.waterloo.edu> Date: 7 Jul 90 15:25:43 GMT References: <2863@zipeecs.umich.edu> Sender: daemon@maytag.waterloo.edu (Admin) Organization: University of Waterloo, Waterloo, Ontario Lines: 20 In-Reply-To: bob@MorningStar.Com's message of 6 Jul 90 14:18:47 GMT >>>>> In article , >>>>> bob@MorningStar.Com (Bob Sutterfield) writes: > Alternately, how does emacs know that it is running in an X > environment, so I can write some simple emacs lisp that doesn't > hang when I dial in on my vt100? Bob> The same as any other X application: It looks for the DISPLAY Bob> environment variable or a -d command line switch. To play with Bob> fonts from your LISP code, use (x-set-font). Look at src/x11* Bob> and lisp/term/x*.el for examples. How about the variable 'window-system which is the symbol 'x if it is running under X, and nil if running on an ordinary terminal. -- -------------------------------------------------------------------- himacdonald@maytag.uwaterloo.ca watmath!maytag!himacdonald "Guns seldom solve any problems; they merely decide whose will shall prevail for the time being." - Brian Jarvis