简体   繁体   English

在Windows中设置emacs环境?

[英]Setting up an emacs environment in windows?

I am currently constrained to a windows dev box and I want to migrate my projects from eclipse to emacs. 我目前仅限于Windows开发人员框,我想将我的项目从eclipse迁移到emacs。

What are some good references on setting up an emacs dev environment for windows? 为Windows设置emacs开发环境有哪些好的参考? Anything that could assist in migrating from eclipse as well would be appreciated. 任何可以帮助从日食迁移的东西也将受到赞赏。

If you're used to windows behaviors (eg ctrl-c is copy, etc.), a good (customized) version of emacs for windows is the 'EmacsW32' package. 如果您习惯于Windows行为(例如ctrl-c是复制等),则适用于Windows的emacs的良好(定制)版本是'EmacsW32'软件包。

If you're looking at migrating away from eclipse, I assume that you probably want java support. 如果您正在考虑从eclipse迁移,我假设您可能需要Java支持。 For this you will want to get the JDEE package, also. 为此,您还将想要获得JDEE软件包。 Unfortunately, it's non-trivial to deploy on windows , as it depends on other packages (and requires cygwin or msys (pseudo-unix environments for windows) in order to install). 不幸的是, 在Windows部署非易事 ,因为它依赖于其他软件包(并且需要cygwinmsys (用于Windows的伪unix环境)才能安装)。

You may also want to install additional modes to support eg SCM systems, etc. A good source of information for this is the EmacsWiki . 您可能还需要安装其他模式来支持SCM系统等。EmacsWiki是一个很好的信息来源。 There's a significant amount of material there about emacs on windows, although some of it is out of date.... Windows上有很多有关emacs的资料 ,尽管其中有些已经过时了。

Sure, just download a prebuilt version and use it. 当然,只需下载一个预构建的版本并使用它即可。

For example, as I use R a lot with the wonderful Emacs ESS mode, the prebuilt version by Vincent Goulet is really useful as it contains Emacs, ESS, Auctex (for LaTeX) and more. 例如,当我在出色的Emacs ESS模式下经常使用R时,Vincent Goulet预构建版本非常有用,因为它包含Emacs,ESS,Auctex(用于LaTeX)等。

Other prebuilds exist for Cygwin, MinGW, or plain old Windows. Cygwin,MinGW或普通的旧Windows还存在其他预构建版本。

Eclipse is pretty good on Windows; Eclipse在Windows上相当不错。 I'm a big user of emacs but for Java development I spend most of my time in Eclipse. 我是emacs的大用户,但是对于Java开发,我大部分时间都在Eclipse中度过。

Regarding general use of emacs on windows I highly recommend you install GnuWin32 , as it is much faster than Cygwin and integrates very well. 关于Windows上emacs的一般使用,我强烈建议您安装GnuWin32 ,因为它比Cygwin快得多,并且集成得很好。 Also see my blog post on Visual Studio tricks in emacs and this one on tags . 另请参阅我关于emacs中Visual Studio技巧的博客文章以及有关tag的文章

I'll assume you are doing Java development for the most part and that you would prefer not to be using Windows. 我假设您大部分时间都在进行Java开发,并且您不希望使用Windows。 This is a situation I find myself in from time to time. 我不时遇到这种情况。 My preferences are to use a Linux machine (virutal or real) in addition to the Windows machine. 我的偏好是除了Windows机器之外,还使用Linux机器(虚拟的或真实的)。 Emacs just works better in a real Unix environment. Emacs在真实的Unix环境中工作得更好。 And then use both Emacs and Eclipse where each is stronger. 然后使用Emacs和Eclipse,两者都更强大。 Emacs for editing, mail, planning, "thinking" type stuff and Eclipse for debugging, refactoring, some error fixing. Emacs用于编辑,邮件,计划,“思考”类型的东西,而Eclipse用于调试,重构和一些错误修复。 Fortunately both Emacs and Eclipse make it easy to use both simultaneously. 幸运的是,Emacs和Eclipse使得同时使用它们变得容易。

I generally use EmacsW32 on a new box - it's a good option at least initially. 我通常在新盒子上使用EmacsW32-至少在最初,这是一个不错的选择。 I'd also recommend checking out the emacs starter kits which hook up to ELPA ( http://tromey.com/elpa/ ), which allows you to get a usable setup pretty quickly. 我还建议您检查连接到ELPA( http://tromey.com/elpa/ )的emacs入门套件 ,它使您可以快速获得可用的设置。

这是我在Windows上设置Emacs的注意事项。

  1. Install Cygwin. 安装Cygwin。
  2. In your .emacs, load these two files, in this order: 在您的.emacs中,按以下顺序加载这两个文件:

http://www.emacswiki.org/emacs/download/cygwin-mount.el http://www.emacswiki.org/emacs/download/cygwin-mount.el

http://www.emacswiki.org/emacs/download/setup-cygwin.el http://www.emacswiki.org/emacs/download/setup-cygwin.el

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM