|
From: | Roland Winkler |
Subject: | Re: check whether emacs session is running under local X server |
Date: | Thu, 28 Sep 2006 03:56:42 +0200 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Glenn Morris <rgm+news@stanford.edu> writes: >> In my .emacs I would like to distinguish between an emacs session >> running under the local X server and an emacs session running under >> a remote X server. I expect that the $DISPLAY variable can do the >> job. But I am not familiar with the details. >> (Once upon a time I set $DISPLAY manually. Nowadays I use ssh which >> handles $DISPLAY for me, but I do not understand the scheme it uses.) > > I just check whether the SSH_CLIENT environment variable is set or > not. Thanks a lot! It seems that this is exactly what I was looking for. Roland
[Prev in Thread] | Current Thread | [Next in Thread] |