如何最佳地集成Emacs和Cygwin? [英] How to best integrate Emacs and Cygwin?

查看:325
本文介绍了如何最佳地集成Emacs和Cygwin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows上有许多方法可以将Cygwin与Emacs集成。 EmacsWiki 显示了几个想法。以下是我找到的选项:

There are a ton of ways to integrate Cygwin with Emacs on Windows. EmacsWiki shows a few ideas. Here are the options that I've found:


  1. 使用Cygwin附带的Emacs。 (然后找到一个方法来获取cmd.exe如果你想要的。)

  2. 使用NTEmacs和Cygwin作为有时shell。 (启动Cygwin的特殊命令)

  3. 使用NTEmacs和Cygwin作为alwaysshell。 (M-x shell启动cygwin)

为了澄清为什么。下面是几个例子,我希望我有Cyacwin与Emacs:

To give some clarity as to "why". Here are a couple of examples where I wish I had Cygwin with Emacs:


  1. Mx whois不适用于NTEmacs。

  2. Wanderlust 这样的软件包包括一个不兼容Windows的Makefile。 / li>
  3. 有时我只需要一个bash shell。

  1. M-x whois doesn't work on NTEmacs.
  2. Packages like Wanderlust include a Makefile that isn't Windows friendly.
  3. Sometimes I just need a bash shell for something.

所以Emacs / Cygwin适合其他人?

So which option of Emacs/Cygwin works well for others? Also, has anyone tried MSYS integration successfully?

推荐答案

使用Cygwin中的Emacs。不是XEmacs..Emacs。我只是安装从Cygwin的一切,并键入以下运行Emacs:

Use the Emacs in Cygwin. Not XEmacs..Emacs. I just install everything from Cygwin and type the following to run Emacs:


XWin -multiwindow
export DISPLAY=:0.0
emacs&

它也可以帮助创建一个链接到您的C驱动器(或任何其他驱动器),如:

It may also help to create a link to your C drive (or any other drive) like so:

ln -s / cygdrive / c / c

已经使用这个几个月,它总是工作得很好。我不断使用高级功能像TRAMP和subversion没有任何问题。所有高级包,如cedet只是工作。

I've been using this for several months and it always works well. I constantly use advanced features like TRAMP and subversion without any issues. All advanced packages like cedet just work.

如果你没有注意到,我是原来的海报。在我所有的研究和尝试后,这一个工作,我非常PLEASED。好的工作Cygwin!

If you hadn't noticed, I am the original poster. After all of my research and attempts, this one worked and I am VERY PLEASED. Good job Cygwin!

此外,我建议不要在Emacs中使用shell。像 top 的工具似乎不工作。相反,使用MinTTY和屏幕。 Cygwin直接在MinTTY中给你ssh(你不需要putty)。最好的部分是,我的很多Linux知识在Windows中无缝地工作。

Also, I recommend not using shell within Emacs. Utilities like top just don't seem to work. Instead, use MinTTY and screen. Cygwin gives you ssh directly in MinTTY (you don't need putty). The best part is that a lot of my Linux knowledge works seamlessly in Windows.

这篇关于如何最佳地集成Emacs和Cygwin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆