Add flycheck to elpy + autosave to pep8 format in Python
This commit is contained in:
parent
1d1c2aad3c
commit
8ca003ac77
3 changed files with 7 additions and 1 deletions
|
|
@ -8,5 +8,6 @@ This configuration requires the installation of :
|
||||||
- clang (for ivory)
|
- clang (for ivory)
|
||||||
- cmake (for ivory)
|
- cmake (for ivory)
|
||||||
- llvm-libs (for cmake, somehow not a dependency on Manjaro when installing cmake)
|
- llvm-libs (for cmake, somehow not a dependency on Manjaro when installing cmake)
|
||||||
|
- Use python-pip to install jedi, flake8, importmagic and autopep8 (for elpy)
|
||||||
|
|
||||||
When first checking out this config, run irony-install-server to make and install the irony-server.
|
When first checking out this config, run irony-install-server to make and install the irony-server.
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,11 @@
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Python ;;
|
;; Python ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
(require 'py-autopep8)
|
||||||
(elpy-enable)
|
(elpy-enable)
|
||||||
|
|
||||||
|
(setq elpy-modules (delq 'elpy-module-flycheck elpy-modules))
|
||||||
|
(add-hook 'elpy-mode-hook 'flycheck-mode)
|
||||||
|
(add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)
|
||||||
|
|
||||||
(provide 'setup-coding)
|
(provide 'setup-coding)
|
||||||
|
|
|
||||||
1
init.el
1
init.el
|
|
@ -51,6 +51,7 @@
|
||||||
company-irony
|
company-irony
|
||||||
flycheck-irony
|
flycheck-irony
|
||||||
elpy
|
elpy
|
||||||
|
py-autopep8
|
||||||
helm
|
helm
|
||||||
helm-gtags
|
helm-gtags
|
||||||
helm-swoop
|
helm-swoop
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue