From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Herenz Newsgroups: gmane.emacs.help Subject: Re: Detect if Emacs is running in -nw mode Date: Sun, 30 Mar 2008 00:52:29 +0100 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206837661 29949 80.91.229.12 (30 Mar 2008 00:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 00:41:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 30 01:41:32 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jflc3-0004lU-8D for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 01:41:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JflbR-0007k9-G3 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 20:40:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news.f.de.plusline.net!newsfeeder.dynfx.net!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1+fXCs7RfjfCSw07Qx94rRJEj/Y+xWPML9vdgGGqQKKaV6Pkb9JuqU8X/y89urwRdjPVCbFKPvpRMKlFyj1RUKjwShX+h21rCg23+IDn56/r6ZHHzd/lCFkLH0MU6J3zC8= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sat, 29 Mar 2008 23:52:30 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX1/4uXG3YKUoFs3GhVi1CywqIFnaW7RUGYM= Cancel-Lock: sha1:lMdyhhxCQpkHTtDD5gbucDE0+tE= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071128 SUSE/1.1.7-3.4 SeaMonkey/1.1.7 Mnenhy/0.7.5.0 Original-Xref: shelby.stanford.edu gnu.emacs.help:157435 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52805 Archived-At: 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