Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I start Cygwin and type emacs and there I am in Emacs. The directions say: to exit type C-x C-c where C is the control key -- I am assuming that is the left control key.

So I hold down the left control key and type x. I get a C-x in the lower bottom of the window. I then try C-c which is holding down the left control key and hitting the c key. Nothing. Just a ding.

In fact I cannot exit from Emacs at all. Is there a way of exiting from Emacs which works?

share|improve this question
    
Since this is not programming related, it should really be posted on superuser, but your problem can be solved by following this page: emacswiki.org/cgi-bin/wiki?CygwinizedEmacsHOWTO –  Lèse majesté Jul 22 '10 at 6:36
1  
add comment

migrated from stackoverflow.com Jul 22 '10 at 18:54

This question came from our site for professional and enthusiast programmers.

2 Answers

Try M-x save-buffers-kill-emacs, where M-x is probably Alt-x under Cygwin.

This command is the default binding for C-x C-c.

To save typing, try binding this command to a different key combination (ie. one that works under Cygwin). Or better yet, download a native Windows version of GNU Emacs.

share|improve this answer
    
Yes, it works. Thanks very much.. –  FihopZz Jul 22 '10 at 6:35
add comment

This is due to weirdness in Ctrl+C handling in Cygwin's default console. Emacs works much better in any of Cygwin's other terminals: mintty, rxvt, xterm.

share|improve this answer
    
Yes, please use mintty (or one of the others, but I think mintty looks better) instead of standard console, it is so much better. –  liori Jul 22 '10 at 18:59
    
Agreed, Cygwin's default terminal is pretty wretched. –  Doug Harris Jul 27 '10 at 15:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.