Emacs Python 自动补全--Elpy
2016-06-27 01:40
1321 查看
安装方法:
首先,安装一些依赖包:
然后,在你的Home目录下,创建一个.emacs文件,并写入如下内容:
打开emacs运行
最后,把下边的内容添加到.emacs文件中
完成。
Reference:
https://github.com/jorgenschaefer/elpy https://realpython.com/blog/python/emacs-the-best-python-editor/ http://codingpy.com/article/emacs-the-best-python-editor/ https://www.emacswiki.org/emacs?action=browse;oldid=PythonMode;id=PythonProgrammingInEmacs#toc2 https://elpy.readthedocs.io/en/latest/introduction.html#installation
首先,安装一些依赖包:
# Either of these pip install rope pip install jedi # flake8 用来检查语法错误 pip install flake8 # importmagic 用来自动引入需要的包 pip install importmagic # autopep8 用来检查PEP8规范 pip install autopep8 # yapf 用来格式化代码 pip install yapf
然后,在你的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
最后,把下边的内容添加到.emacs文件中
(package-initialize) (elpy-enable)
完成。
Reference:
https://github.com/jorgenschaefer/elpy https://realpython.com/blog/python/emacs-the-best-python-editor/ http://codingpy.com/article/emacs-the-best-python-editor/ https://www.emacswiki.org/emacs?action=browse;oldid=PythonMode;id=PythonProgrammingInEmacs#toc2 https://elpy.readthedocs.io/en/latest/introduction.html#installation
相关文章推荐
- Python opencv(1) 显示图像
- selenium+python测试
- python 学习简记《编程导论》CH2&CH3
- python设计模式大全
- Python教程之全局变量用法
- Python使用smtplib模块发送电子邮件的流程详解
- 详解Python中的__getitem__方法与slice对象的切片操作
- 解析Python中的__getitem__专有方法
- Python中的字符串查找操作方法总结
- 深入解析Python中的descriptor描述器的作用及用法
- 总结网络IO模型与select模型的Python实例讲解
- Python的string模块中的Template类字符串模板用法
- Python中的字符串替换操作示例
- python基础(__init__(self) 和super().__init())
- Python random模块
- python解析邮件
- day03_Python的函数
- python urllib使用
- python 模块的使用
- Python Class 重要基础知识篇