diff --git a/README.md b/README.md index b631bf4..d16d58c 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,6 @@ This configuration requires the installation of : - clang (for ivory) - cmake (for ivory) - 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. diff --git a/custom/setup-coding.el b/custom/setup-coding.el index 87f5cc3..2309991 100644 --- a/custom/setup-coding.el +++ b/custom/setup-coding.el @@ -41,7 +41,11 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Python ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - +(require 'py-autopep8) (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) diff --git a/init.el b/init.el index d23ffb6..fa96e6c 100644 --- a/init.el +++ b/init.el @@ -51,6 +51,7 @@ company-irony flycheck-irony elpy + py-autopep8 helm helm-gtags helm-swoop