aspose file tools*
The moose likes Linux / UNIX and the fly likes how to exit emacs mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to exit emacs mode" Watch "how to exit emacs mode" New topic
Author

how to exit emacs mode

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
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

Joined: Jul 08, 2003
Posts: 24166
    
  30

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.


[Jess in Action][AskingGoodQuestions]
rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to exit emacs mode
 
Similar Threads
Three Top XML IDEs: experts view
Emacs anyone?
Emacs or Vi?
JSP Editor
editing XML