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: Kiwon Um
Subject: Re: How to check the -nw option?
Date: Sun, 10 May 2009 23:54:58 -0700 (PDT)
User-agent: G2/1.0

On 5월11일, 오후3시31분, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Kiwon Um <um.ki...@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__

Thanks for all advices. :)


reply via email to

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