This is the mail archive of the
cygwin
mailing list for the Cygwin project.
managing multiple emacs
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 9 Jun 2015 14:30:47 +0000
- Subject: managing multiple emacs
- Authentication-results: sourceware.org; auth=none
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