[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detect if Emacs is running in -nw mode
From: |
Barry Margolin |
Subject: |
Re: Detect if Emacs is running in -nw mode |
Date: |
Sun, 30 Mar 2008 22:18:57 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b2 (Intel Mac OS X) |
In article <m34papoxpo.fsf@tfkp07.physik.uni-erlangen.de>,
Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> wrote:
> Christian Herenz <herenz@physik.hu-berlin.de> writes:
> > Is there something when NOT, so that I could set
> > [PSEUDO-CODE]:
> > (when not (window-system)
> > (menu-bar-mode nil)
> > (other commands i want to use when not windowed))
>
> You can test whether the DISPLAY environment variable is set using
>
> (getenv "DISPLAY")
>
> In this way you can distinguish between emacs -nw running in an X
> or a "pure tty" environment. Is that what you want?
There are other window systems besides X.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
- Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/29
- Re: Detect if Emacs is running in -nw mode, Tom Rauchenwald, 2008/03/29
- Message not available
- Message not available
- Re: Detect if Emacs is running in -nw mode, Will Parsons, 2008/03/29
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/29
- Re: Detect if Emacs is running in -nw mode, BVK, 2008/03/29
- Re: Detect if Emacs is running in -nw mode, Rupert Swarbrick, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Lennart Borgman (gmail), 2008/03/30
- Message not available
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Lennart Borgman (gmail), 2008/03/30