Emacs python模式 [英] Emacs python-mode

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

问题描述

我正在尝试配置Emacs23.2使用python2.7.3,使用包 python-mode.el -6.0.7

I'm trying to configure Emacs23.2 to work with python2.7.3, using the package python-mode.el-6.0.7

添加到我的 .emacs 文件后,这些LISP行,如INSTALL说明所示。 。

After adding to my .emacs file these LISP lines, as indicated in the INSTALL instructions,...

(add-to-list 'load-path "PATH/TO/PYTHON-MODE/") 
(setq py-install-directory "PATH/TO/PYTHON-MODE/")
(require 'python-mode)

...我打开一个文件 foo.py ,直到这里它的所有OK:python被识别,语法突出显示,emacs是工作得很好

... I open a file foo.py and until here its all OK: python is recognised, the syntax is highlighted and emacs is working well.

但是我有嫌疑犯我错过了一些事情或做错了事情主要是因为在python模式包中有更多的东西要用于python& ; emacs,如pycomplete,pymacs等...看起来像它们不一起工作,当我打开emacs& python。

But I got the suspect I'm missing something or doing something wrong... Mainly, because in the python-mode package there is some more stuff to use with python&emacs, like pycomplete, pymacs, etc... which looks like they are not operating together when I open emacs & python.

有没有人知道如何以正确的方式配置这个包,以使所有的一切正常运行?

Does anyone know how to configure this package in a proper way, to get everything together working right?

欢迎任何(个人)建议,因为我不是具有emacs的专业人士!

Any (personal) suggestion is welcome, as I am not a pro with emacs...!

推荐答案

(我想有人会提供一个更好的答案,但...)

(I imagine someone will provide a better answer, but...)

在EmacsWiki上Python支持的文档用于相当凌乱,部分是因为有两种不同的主要模式可供选择,每种信息都混合在同一页面。

The documentation for Python support on the EmacsWiki used to be pretty messy, in part because there were two different major modes to choose from, and information for each was all mixed into the same page.

显然已被清理自从我第一次遇到它以来,很有希望,所以希望不会太混乱,你会发现你需要的以下之一:

It's clearly been cleaned up a great deal since I first encountered it, so hopefully it's not too confusing, and you'll find what you need at one of the following:

  • http://emacswiki.org/emacs/PythonProgrammingInEmacs
  • http://wikemacs.org/wiki/Python

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

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