[comp.emacs] x-switches

pnh@emax.dec.com (Peter Harbo) (11/10/87)

I would like to place the emacs window at the top left corner of my root
window--have experimented with the x-switches w/out success.  Could someone
give me the proper form of the x-switches variable so I don't have to 
mouseclick? i.e.
 
        (setq x-switches '( ("-w" . '(whatever)) ) )
 
P Harbo
DEC/Littleton

hartzell@boulder.Colorado.EDU (George Hartzell) (11/11/87)

In article <8711101539.AA06589@decwrl.dec.com> pnh@emax.dec.com (Peter Harbo) writes:
>I would like to place the emacs window at the top left corner of my root
>window--have experimented with the x-switches w/out success.  Could someone
> 
>        (setq x-switches '( ("-w" . '(whatever)) ) )
> 

I just figured this out yesterday after digging through the
source code.  Try:
(setq x-switches '(("-w" ."=80x24x10x10")))

This will put an 80x20 window at 10,10 without you having to 
hit your mouse.  Can anyone let me know how to conditionally load
my X stuff in my .emacs depending on whether I am in an X window or an
ascii terminal?
g.

George Hartzell			                 (303) 492-4535
MCD Biology, University of Colorado-Boulder, Boulder, CO 80309
hartzell@Boulder.Colorado.EDU  ..!{hao,nbires}!boulder!hartzell

mende@athos.rutgers.edu (Bob Mende) (11/11/87)

In article <2899@sigi.Colorado.EDU> hartzell@boulder.Colorado.EDU (George Hartzell) writes:
> ...  Can anyone let me know how to conditionally load
> my X stuff in my .emacs depending on whether I am in an X window or an
> ascii terminal?
> g.

  Look at the variable window-system.   This is in Ver 18.47 and I
assume earlyer... it contains the name of the window system that emacs
is invoked under... if you are running emacs in an xterm without the X
interface then this should not be set... test this variable and then
do do what you like if it is X.


					/Bob
-- 
     mende@rutgers.edu    {...}!rutgers!mende    mende@zodiac.bitnet

On the other hand, life can be an endless parade of TRANSSEXUAL
 QUILTING BEES aboard a cruise ship to DISNEYWORLD
 if only we let it!!