• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

how to exit emacs mode

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
No holds barred. And no bars holed. Except this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic