help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Detect if Emacs is running in -nw mode


From: Christian Herenz
Subject: Re: Detect if Emacs is running in -nw mode
Date: Sun, 30 Mar 2008 00:52:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071128 SUSE/1.1.7-3.4 SeaMonkey/1.1.7 Mnenhy/0.7.5.0

Tom Rauchenwald schrieb:

I want to have set(menu-bar-mode nil) at start in -nw mode.

(when (window-system)
      (menu-bar-mode -1))

or similiar should work


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))


Greets,
Christian



reply via email to

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