您的位置:首页 > 其它

emacs配置elpy

2016-11-08 20:13 525 查看
1.主要把插件jedi装上

2.在你的Home目录下,创建一个.emacs文件,并写入如下内容:

(require 'package)
(add-to-list 'package-archives
'("elpy" . "https://jorgenschaefer.github.io/packages/"))

打开emacs运行 M-x package-refresh-contents加载新的库,然后运行M-x package-install RET elpy RET(RET即回车键)安装elpy

3.最后,把下边的内容添加到.emacs文件中

(package-initialize)
(elpy-enable)

(setq-default cursor-type 'bar)
(global-linum-mode t)
(column-number-mode t)

 完成。

参考

1、文件

2、文件






First, install the required Python packages::

# Either of these
pip install rope
pip install jedi
# flake8 for code checks
pip install flake8
# importmagic for automatic imports
pip install importmagic
# and autopep8 for automatic PEP8 formatting
pip install autopep8
# and yapf for code formatting
pip install yapf

One-line install: pip install jedi flake8 importmagic autopep8

Evaluate this in your *scratch* buffer:

(require 'package)
(add-to-list 'package-archives
'("elpy" . "https://jorgenschaefer.github.io/packages/"))

Then run M-x package-refresh-contents to load the contents of the new repository, and M-x package-install RET elpy RET to install elpy.

Finally, add the following to your .emacs:

(package-initialize)
(elpy-enable)

Done.


C+c,C+c直接运行代码。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: