Subscribe to

Two nice Cygwin tips

I found solutions to two long-standing irritations in Cygwin on Greg Coombe’s website.

Cygwin exit gives error message

Does exiting Cygwin sometimes generate a “Terminate Batch Job(Y/N)” message? If so, you’re probably using a Windows batch file to launch Cygwin. If the batch file doesn’t consist of much, then just put all of that information directly into the shortcut. For me, this meant replacing the Cygwin shortcut:

to this:
C:\cygwin\bin\bash.exe –login -i

Cygwin: Can’t quit Emacs using C-x C-c

On some installations of Cygwin on Windows XP, it is impossible to exit Emacs using C-x C-x. After digging around in the message lists, I found out that the C-x key is trapped by the OS. The fix for this is to set a Windows environment variable:

Then quit all of the Cygwin windows and start them up again. This worked for me.

3 Responses to “Two nice Cygwin tips”

  1. on 06 Sep 2008 at 6:58 pmFabian Corrales

    Holy and powerful cow! It worked! Finally my GNU Emacs works! Today is another glorious day in my life. Thank you Chris Rodgers. Have a nice day, fellow.

  2. on 28 Nov 2010 at 7:43 pm[OvO]wl

    Ace tip, thanks!

  3. on 11 Dec 2011 at 9:01 pmA

    The emacs thing was driving me nuts. Thanks for the help.

    And since a picture is worth 1,000 words, here’s a picture for how I set my variable:

Leave a Reply

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image