managing multiple emacs

Tobias Zawada
Tue Jun 9 14:48:00 GMT 2015

> "Nellis, Kenneth" <> 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
to /usr/bin/emacs-w32.exe.

Best regards,

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list