1

https://github.com/prettier/prettier-emacs does formatting for javascript

wonder if there's an equivalent for python code?

2

Since Python has a lot of PEP regulations, one can use Black as their code formatter. This is found in the Elpy package or can be found on github.

2
  • darn, a lot of stars on in.. Thanks!
    – eugene
    May 25 '20 at 13:50
  • 1
    There is an emacs library that will automatically run black as well.
    – Att Righ
    Jul 9 '20 at 20:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.