[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How read environment variable in .emacs?

From: Bingham, Jay
Subject: RE: How read environment variable in .emacs?
Date: Mon, 18 Feb 2002 14:47:49 -0600

What you are looking for is getenv.

You really should learn to use the GNU Emacs Lisp Reference Manual.  I found 
the answer in there in less than 5 minutes (although I was pretty sure I knew 
it before I went looking).  If your system does not have it installed in the 
Info you can find it on the web at: 
This is not the latest version but it is close.  I do not know when the latest 
version will be posted on the web.  Maybe some one will take the hint and get 
it posted soon.

.    COMPAQ NonStop Integrity Systems
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-

 -----Original Message-----
From:   Chris Seberino [] 
Sent:   Saturday, 16 February, 2002 6:16 p
Subject:        How read environment variable in .emacs?

I would like to read $DISPLAY in .emacs in a function
to know if emacs is running locally or remotely.

How do I do this???

(I've noticed local  => DISPLAY = :0
              remote => DISPLAY undefined )

| Dr. Christian Seberino  || (619) 553-7940  (office) |
| SPAWARSYSCEN 2363       || (619) 553-2836  (fax)    |
| 53560 HULL ST           ||                          |
| SAN DIEGO CA 92152-5001 || |

Help-gnu-emacs mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]