This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: managing multiple emacs
- From: Tobias Zawada <i_inbox at tn-home dot de>
- To: "Nellis, Kenneth" <kenneth dot nellis at xerox dot com>, cygwin at cygwin dot com
- Date: Tue, 9 Jun 2015 16:48:22 +0200 (CEST)
- Subject: Re: managing multiple emacs
- Authentication-results: sourceware.org; auth=none
- References: <0D835E9B9CD07F40A48423F80D3B5A702E8EE518 at USA7109MB022 dot na dot xerox dot net>
- Reply-to: Tobias Zawada <i_inbox at tn-home dot de>
> "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