IronPython的+ Emacs的? [英] IronPython + Emacs?

查看:187
本文介绍了IronPython的+ Emacs的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经决定进入IronPython的,因为我在使用.NET pretty的多只,但需要的东西一点点比C#少闷嘲弄了快速的东西。 Python已经被罚款,小东西,一次性测试,诸如此类的东西,但它是我需要能够得到我们的一些.NET code点。

I've decided to get into IronPython, as I work pretty much exclusively in .NET, but need something a little less stuffy than C# for mocking up quick stuff. Python has been fine for small things, throwaway tests, that sort of stuff, but it's to the point that I need to be able to get to some of our .NET code.

尽管我的完整反感,我一直使用emacs为Python的编辑,我想要使用它的IronPython的还有,假设它是可能的。谷歌一直没有即将到来的资源,所以我想我会看看是否有人在这里知道的一种方式来获得的工作。

Despite my complete revulsion, I've been using emacs for Python editing, and I'd like to use it for IronPython as well, assuming it's possible. Google has not been forthcoming with resources, so I thought I'd see if anybody around here knew of a way to get that working.

推荐答案

您可以使用IronPython的,就好像它是一个标准的Jython除preTER在Emacs。

You can use IronPython as if it were a standard Jython interpreter in emacs.

这假设您正在使用 EmacsW32 并已安装的蟒蛇模式从启动板。 (请注意,从启动板的蟒蛇模式是从自带的emacsw32蟒蛇模式不同的!)

This assumes that you are using EmacsW32 and that you have installed python-mode from launchpad. (Note that python-mode from launchpad IS DIFFERENT from the python mode that comes with emacsw32!)

请确保您已 IronPython的安装的,你知道它在文件系统中的位置。

Make sure you have IronPython installed, and you know its location on the filesystem.

打开emacs的,然后打开文件〜/ emacs的,并添加一行code,设置可变PY-Jython的命令,使其指向IronPython的,如下图所示。你想改变以下

Open up emacs, then open the file ~/.emacs and add a line of code that sets the variable py-jython-command to point to IronPython, as below. You'll want to change the value below

(setq PY-Jython的命令C:/ Program Files文件/ IronPython的2.0.1 / ipy.exe)

(setq py-jython-command "c:/Program Files/IronPython 2.0.1/ipy.exe")

重新启动emacs的,以确保变量是否设置正确。

Restart emacs to make sure that variable is set correctly.

打开一个Python文件,按control-C控制-T切换为Jython(IronPython的)外壳,然后按Ctrl-C组合!启动外壳。

Open a python file, hit control-c control-t to toggle to the Jython(IronPython) shell, then hit control-c ! to start up the shell.

在这一点上,你可以打控制-C控制-C执行里面的IronPython打开的文件的内容,或者只是玩里面IronPython的。

At this point you can hit control-c control-c to execute the contents of the open file inside IronPython, or just play around inside IronPython.

的方向上面假设你可以安装Python的模式,但是如果你不知道该怎么做,我可以添加更多的指令。

The directions above assume that you can install python-mode, but if you don't know how to do that, I can add more instructions.

另外,我很乐意在任何此类扩展,如果目前还不清楚。

Also, I'd be happy to expand on any of this if it's unclear.

这篇关于IronPython的+ Emacs的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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