• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to exit emacs mode

 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using cygwin on win2000 to simulate unix env. I am wondering how I can ext emacs editing mode after I finish editing?

thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rick,

Emacs on cygwin is a funny thing. Out of the box, running Emacs in a terminal is horribly broken (as you've noticed.) You have to make a little change to the file "cygwin.bat" to make things work. This is the file that the "cygwin" desktop icon is an alias to. Edit the file with notepad, and add the line "set CYGWIN=tty" anyplace before the final line that executes bash. Make sure you exit all Cygwin programs, and then launch the cygwin terminal again.

Now when you run emacs in the terminal, you can exit it using Control-X Control-C, as the emacs manual tells you that you can.
 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Ernest:

That really does the trick. Thanks for your nice suggestion.

You are right, cygwin does not work as it claims to be. My ksh scripts
all broken when I run then using cygwin.

regards,


Originally posted by Ernest Friedman-Hill:
Hi Rick,

Emacs on cygwin is a funny thing. Out of the box, running Emacs in a terminal is horribly broken (as you've noticed.) You have to make a little change to the file "cygwin.bat" to make things work. This is the file that the "cygwin" desktop icon is an alias to. Edit the file with notepad, and add the line "set CYGWIN=tty" anyplace before the final line that executes bash. Make sure you exit all Cygwin programs, and then launch the cygwin terminal again.

Now when you run emacs in the terminal, you can exit it using Control-X Control-C, as the emacs manual tells you that you can.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic