Add flycheck to elpy + autosave to pep8 format in Python

This commit is contained in:
laurensmiers 2017-08-21 17:02:45 +02:00
parent 1d1c2aad3c
commit 8ca003ac77
3 changed files with 7 additions and 1 deletions

View file

@ -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.

View file

@ -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)

View file

@ -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