From 03ea559839a127a52c28da32104c136a4740bb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 19 Mar 2024 10:27:41 -0700 Subject: [PATCH] README: emacs autopep8 update --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 63dc298d1..c8dff3252 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,22 @@ You can use [use-package](https://github.com/jwiegley/use-package) to install [p (setq py-autopep8-options '("-a" "-a"))) ``` +If you don't have it already, you also need to install [autopep8](https://pypi.org/project/autopep8/): + +``` +pip install autopep8 +``` + +If use install `autopep8` in the `venv` environment described before, you can use [pyvenv-auto](https://github.com/ryotaro612/pyvenv-auto) to automatically load the virtual environment inside Emacs. + +```elisp +(use-package pyvenv-auto + :ensure t + :defer t + :hook ((python-mode . pyvenv-auto-run))) + +``` + ### Visual Studio Code Install the