delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/06/09/10:31:14

X-Recipient: archive-cygwin AT delorie DOT 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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=jyE
QL6waiGyxlk73uDRxF2OKWzJUNIWnNsvlJrOIwnB81JJxAQALHVfU/7CR9lWX8N4
piA/+iG/iJHh9MoQ265gvuuQerdzswwyPL2NaA90+uUhOOT5Y3/rKiNERVq3klkM
CTs7yZWw8TFFcgh/Okrxq7KoAFCK99VqnlYnzylU=
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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=7fkoKcN5B
EAhxtbQcq1FCKQt0CM=; b=Uqct45IbGzKfJC5AbfdKTwjxNLPQfib9cAxh4lpmc
tDVhYuluJeTSndoWMwakVr54c+sxpU2JH+8D4ttwD7ejCs2sun/+dDkPMzzJKh/A
8k+eb7DkGUWtPuwGxHhRs1MA6aD7wy5q7ImeClBf61CK49V0hpe8m5gWs5Td/j8U
zk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: USA7109MR008.ACS-INC.COM
From: "Nellis, Kenneth" <Kenneth DOT Nellis AT xerox DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: managing multiple emacs
Date: Tue, 9 Jun 2015 14:30:47 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E8EE518@USA7109MB022.na.xerox.net>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t59EV6Pp021319

I have two versions of emacs on my Windows 7 box: Cygwin's and a native Windows one.
Each one has its own .emacs file, distinguished by different HOME environment variables.
This generally works: when I launch Cygwin's emacs it uses $HOME/.emacs; when I launch 
Windows emacs, It /generally/ uses the Windows %HOME%/.emacs file, but there's a catch: 
When I launch a Windows application from within Cygwin, e.g. ClearCase Explorer, and from
that Windows app I open a file in emacs, because the Windows app has inherited my Cygwin 
environment, it uses my Cygwin .emacs file, not my Windows one.

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)

Without a solution to a unified .emacs, I wonder how to associate a .emacs file with a 
particular emacs binary.

-Ken Nellis

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019