Merge pull request #79 from daily-co/readme-emacs-autopep8-update

README: emacs autopep8 update
This commit is contained in:
Aleix Conchillo Flaqué
2024-03-20 02:17:44 +08:00
committed by GitHub

View File

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