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 14:17:49 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206880888 26053 80.91.229.12 (30 Mar 2008 12:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 12:41:28 +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 14:41:59 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 1JfwrF-0005N2-Dr for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 14:41:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfwqd-0007Ji-Ne for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 08:41:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1+JUMfCPD63CwQRDn5N29GfTPprTbj0JG4q9gUAwLx+d3kwTcpUEDaHLGA1YIP/Yb/BfcCf9hf+5tXQb2kiXlAPnV4TTbP6muJwoLlmm7VJDAue2z1IgXsQgbN4s5MGLGo= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 30 Mar 2008 12:17:50 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX1/FYkrwqxbdleERLtbvxpsRcAbasVzqDQY= Cancel-Lock: sha1:N8wV74g4iiIM3Di/k0uUbQSmvHo= 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:157461 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:52830 Archived-At: Rupert Swarbrick schrieb: > And your code would be: > > (unless window-system (menu-bar-mode -1)) > > > Hope this helps! > Thanks for your long answer, I am beginning to understand... But I also get a little bit confused. As I stated before, I want to run more commannds, is this as simple as: (unless window-system (menu-bar-mode -1) (color-theme-arjen)) ? Thanks again for your answer Rupert, I really learned something. Greets, Christian