This has been bothering me for a long time. According to an old post, Ctrl-C can’t be properly mapped in the normal Cygwin console running under Windows; so Ctrl-X-Ctrl-C-ing out of Emacs under Cygwin is not an option.
Alternatives are as follows:
- Set the environmental variable
CYGWIN=tty. (This may disable echo back to the local terminal when you exit Emacs.)
- Run emacs under rxvt or X.
M-x kill-emacs. (I wish I had know about this years ago.)
Die, emacs. Die.