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

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

Re: How to check the -nw option?


From: Pascal J. Bourguignon
Subject: Re: How to check the -nw option?
Date: Mon, 11 May 2009 08:31:18 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

Kiwon Um <um.kiwon@gmail.com> writes:

> On 5월11일, 오후1시40분, Teemu Likonen <tliko...@iki.fi> wrote:
>> On 2009-05-10 18:37 (-0700), Kiwon Um wrote:
>>
>> > Some modes do not work with terminal base, i.e. no-window-system (-nw)
>> > emacs. So I want to write my .emacs with checking if it's no-window-
>> > emacs emacs or not. How I can check this?
>>
>> Check the variable "window-system". Its value is nil if Emacs is not
>> running in a window system. The manual section is here:
>>
>>     M-x elisp-index-search RET window-system RET
>
> Thanks.
> It is really what I wanted.
> (if (not (eq window-system nil)) ...) works well. :)

Please, write it:
 
  (when window-system
     ...)

or at the very least:

  (unless (null window-system)
     ...)

-- 
__Pascal Bourguignon__


reply via email to

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