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: Will Parsons
Subject: Re: Detect if Emacs is running in -nw mode
Date: 30 Mar 2008 01:10:51 GMT
User-agent: slrn/0.9.8.1 (FreeBSD)

Lennart Borgman (gmail) wrote:
> 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))
>     ...)

Or how about (unless ...)

(unless (window-system)
  ...) 

-- 
Will


reply via email to

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