X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:to:message-id:in-reply-to
	:references:subject:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=HDurEjByut8F6U78
	FXCHlu3OXZ+wiS1oKfXMUSUvBa5/+9v3dzR3bpp06KT89CNNzmnpbk2OpxOcD12W
	Jgl7GSm2fr/ImDAxSeNyh6xrClEN2DOseAC/v4nI7gCFSvsvJ20Gj1Ti6h2th4y5
	qgfWr6FoKEmyD1/H93GjnIcwtl8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:to:message-id:in-reply-to
	:references:subject:mime-version:content-type
	:content-transfer-encoding; s=default; bh=kt/YYtHqKrlo6DgmjLcuE6
	qlShM=; b=f62j2Y/9v5BUvFkW6spo7MXT6nEFith12oCeSCiUN4h/O/tZQck0Of
	jk44bQgDQ2i/JnZHtI6e1mOhAZXVw1oxvAvAjOdKeOjhuBKKyK/HKXr/xf79n8hb
	iwlSyVKyNGBaIyr9P3esppyuuwCVhNb45f5xDHzamWvWPEfACx10k=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2
X-HELO: mout.kundenserver.de
Date: Tue, 9 Jun 2015 16:48:22 +0200 (CEST)
From: Tobias Zawada <i_inbox@tn-home.de>
Reply-To: Tobias Zawada <i_inbox@tn-home.de>
To: "Nellis, Kenneth" <kenneth.nellis@xerox.com>, cygwin@cygwin.com
Message-ID: <746959315.17504.1433861302844.JavaMail.open-xchange@oxbsltgw04.schlund.de>
In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E8EE518@USA7109MB022.na.xerox.net>
References: <0D835E9B9CD07F40A48423F80D3B5A702E8EE518@USA7109MB022.na.xerox.net>
Subject: Re: managing multiple emacs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Originating-Client: open-xchange-appsuite
X-UI-Out-Filterresults: notjunk:1;
X-IsSubscribed: yes

> "Nellis, Kenneth" <Kenneth.Nellis@xerox.com> wrote:
> 
> Ideally, I could unify the two .emacs files, but that presents another
> problem:
> I want the menu to be disabled in the character-cell Cygwin console (mintty)
> where it is 
> useless, but it is useful in the Windows emacs, so how do I test within a
> unified .emacs 
> file which binary I'm using so that I can conditionally control the menu bar?
> FWIW, the command to disable the menu is: (menu-bar-mode 0)

You can use the system-type variable:

(when (eq system-type 'cygwin)
    (menu-bar-mode 0))

But, I would rather start /usr/bin/emacs-w32.exe of cygwin.
Just soft-link
/etc/alternatives/emacs
to /usr/bin/emacs-w32.exe.

Best regards,
Tobias

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

