Emacs IDE for Python

下载python-mode.el

然后根据readme信息在.emacs中添加如下信息:

;;for python
(setq py-install-directory "//usr/share/emacs/site-lisp/python-mode.el-6.0.11/")
(add-to-list 'load-path py-install-directory)
(require 'python-mode)
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))

;;To enable code completion
(setq py-load-pymacs-p t)

;;To use auto-complete
(require 'auto-complete-config)
(ac-config-default)

重启Emacs, 打开一个.py 文件就可以自动打开 python-mode,

Pyexec ->  execute statement 打开自测窗口


你可能感兴趣的:(python,ide,emacs)