Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!mstar!mstar.morningstar.com!bob From: bob@MorningStar.Com (Bob Sutterfield) Newsgroups: comp.emacs Subject: Re: really easy question Message-ID: Date: 6 Jul 90 14:18:47 GMT References: <2863@zipeecs.umich.edu> Sender: usenet@MorningStar.COM (USENET Administrator) Reply-To: bob@MorningStar.Com (Bob Sutterfield) Organization: Morning Star Technologies Lines: 43 In-Reply-To: bagchi@dip.eecs.umich.edu's message of 6 Jul 90 04:43:53 GMT In article <2863@zipeecs.umich.edu> bagchi@dip.eecs.umich.edu (Ranjan Bagchi) writes: How do I set the default font for emacs when I bring it up on an X terminal? My X environment contains some resources like: *Font: -*-lucidatypewriter-medium-*-*-*-*-120-*-*-*-*-*-* emacs*BorderWidth: 2 #ifdef COLOR emacs*Foreground: NavyBlue emacs*Background: wheat emacs*Border: sienna emacs*Cursor: DarkOrchid emacs*Mouse: orange #endif (pretty hideous, huh? you can tell I live in monochrome day-to-day :-) Emacs supports the following resources: bodyfont bitmapicon borderwidth internalborder foregrounddd background border cursor mouse reversevideo Or you could specify the -font switch on the command line. 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? The same as any other X application: It looks for the DISPLAY environment variable or a -d command line switch. To play with fonts from your LISP code, use (x-set-font). Look at src/x11* and lisp/term/x*.el for examples. (... This all assumes you mean GNU Emacs and not some other ...)