py-yapf.el:使用yapf美化Python缓冲区

时间:2024-05-26 05:07:11
【文件属性】:

文件名称:py-yapf.el:使用yapf美化Python缓冲区

文件大小:19KB

文件格式:ZIP

更新时间:2024-05-26 05:07:11

EmacsLisp

py-yapf.el 提供命令,这些命令使用外部yapf工具根据Python的PEP8整理当前缓冲区。 $ pip install yapf $ wget https://raw.githubusercontent.com/paetzke/py-yapf.el/master/py-yapf.el \ -O /your/path/py-yapf.el 您还可以使用MELPA安装py-yapf yapf : M-x package-install RET py-yapf RET 将保存钩子添加到您的~/.emacs (add-to-list 'load-path " /your/path/ " ) (require 'py-yapf) (add-hook 'python-mode-hook 'py-yapf-enable-on-save) 现在,每次保存Python


【文件预览】:
py-yapf.el-master
----py-yapf.el(6KB)
----test-requirements.txt(17B)
----tests.sh(1KB)
----.bumpversion.cfg(151B)
----CHANGELOG.org(67B)
----README.org(1KB)
----.travis.yml(89B)
----LICENSE(34KB)
----fetch-buftra.sh(540B)
----Makefile(184B)
----tests.el(65B)
----tests()
--------02()
--------01()
----.gitignore(10B)

网友评论