Adds a python-format-buffer
command to Spacemacs. Powered by black and reformatter.el.
- Clone this repository into your private layer directory (
~/.emacs.d/private/
by default). - Add
spaceblacken
to yourdotspacemacs-configuration-layers
and restart spacemacs.
In python-mode
, press , =
(evil) or M-RET =
(emacs) to run the python-format-buffer
command.
Passed as the --line-length
argument to black. If set to 'fill
, uses the value of fill-column
. Set to 'fill
by default.