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: Lennart Borgman (gmail)
Subject: Re: Detect if Emacs is running in -nw mode
Date: Sun, 30 Mar 2008 01:44:16 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Christian Herenz wrote:
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

There is (not ...)  ;-)

(when (not (window-system))
   ...)




reply via email to

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