cygwin下不能退出Emacs

在Cygwin下练习使用Emacs,敲了C-x C-c后不退出。

google “emacs cygwin quit”,发现不只我遇到这个问题,呵呵。

解决办法:修改启动Cygwin的批处理文件 cygwin.bat。

在@echo off后面加上这一行

set CYGWIN=binmode tty ntsec

改好以后是这样的:

@echo off
set CYGWIN=binmode tty ntsec
C:\
chdir C:\cygwin\bin

bash --login -i

Ref: http://lists.gnu.org/archive/html/help-gnu-emacs/2005-01/msg00499.html

CYGWIN这个环境变量的详细介绍在Cygwin的User Guide里可以找到。

3 thoughts on “cygwin下不能退出Emacs

  1. very very cool! I was wondering about the weirdness of emacs under cygwin. Now I finally can use emacs again.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.
For more help see http://daringfireball.net/projects/markdown/syntax

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>