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: Tom Rauchenwald
Subject: Re: Detect if Emacs is running in -nw mode
Date: Sat, 29 Mar 2008 23:43:10 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

Christian Herenz <herenz@physik.hu-berlin.de> writes:

> Hi,
>
> How can I detect in .emacs, if emacs is running in -nw mode or in a
> non X environment?
>
> 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

> Greets,
> Christian

Tom

-- 
Then I drew in a breath, and my renewed will with it, lifted the rod
in my right hand, murmured a phrase in a language I didn't know, and
blew the tires off his fucking truck.
        -- Harry Dresden





reply via email to

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