真郁闷啊,装了cygwin还没怎么好好玩过。最近因为拆机-重装系统,暂时没装linux,就想着也摸索摸索cygwin,结果上来就给我难题。。
xemacs不太会用,关键是貌似函数名什么的都变掉了,配置文件还要重新写?麻烦啊。
于是emacs有什么问题呢?
居然ctrl-c 是默认绑定到ctrl-g上面去了。。所以怎么退出emacs啊C x C c啊。
查了查资料,原来这个问题04年就有人在问了。真的没有解吗。。
这里转载一下内容:
>On Tue, Mar 09, 2004 at 10:46:47PM -0500, George Hester wrote: >>I go into emacs easy enough. I start cygwin and type emacs and there I >>am in emacs. The directions say to exit type C-x C-c where C is the >>control key. I am assuming that is the left control key. So I hold >>down the left control key and type x. I get a C-x in the lower bottom >>of the window. I then try C-c which is holding down the left control >>key and hitting the c key. Nothing. Justy a ding. In fact I casnnot >>exit from emacs at all. Does anyone have a way of exiting from emacs >>which works? Thanks. > >Either set the environment variable CYGWIN=tty prior to running any >cygwin program or run emacs under rxvt. CTRL-C is not remappable in >the normal cygwin console due to windows constraints. 2 more options: 1. Run emacs under the X-Windows server. 2. Use "M-x kill-emacs", which is either: a. Hit the key ALT-x, then type "kill-emacs", then hit the key ENTER. b. Hit the key ESCAPE, then hit the key x, then type "kill-emacs", then hit the key ENTER. -Richard Campbell.
好吧,所以结果还是可以接受的。反正emacs一般也就是一直开着他了。就让他tty设定过去也无所谓吧。
<编辑>
后来又发现这个网站,给了一个更好的解决方案~~
Cygwin
Cygwin下的Emacs不能退出的问题 Xemacs就没有这个问题 需要在cygwin.bat里面加进: @echo off set CYGWIN=binmode tty ntsec #加进这句话Emacs就能正常退出了 g: chdir g:\cygwin\bin #$PATH/Cygwin/bin/ bash --login -
问题解决~~
</编辑>