|
From: | Glenn Morris |
Subject: | Re: check whether emacs session is running under local X server |
Date: | Wed, 27 Sep 2006 18:10:23 -0700 |
User-agent: | Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Roland Winkler wrote: > 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.
[Prev in Thread] | Current Thread | [Next in Thread] |