[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:
http://www.gnu.org/manual/elisp-manual-20-2.5/
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.
J_)
C_)ingham
. 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 [mailto:seberino@spawar.navy.mil]
Sent: Saturday, 16 February, 2002 6:16 p
To: help-gnu-emacs@gnu.org
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 )
Chris
--
=======================================================
| Dr. Christian Seberino || (619) 553-7940 (office) |
| SPAWARSYSCEN 2363 || (619) 553-2836 (fax) |
| 53560 HULL ST || |
| SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil |
=======================================================
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs