https://github.com/backwardspy/spaceblacken
spacemacs + python + black = 🐍
https://github.com/backwardspy/spaceblacken
Last synced: 8 months ago
JSON representation
spacemacs + python + black = 🐍
- Host: GitHub
- URL: https://github.com/backwardspy/spaceblacken
- Owner: backwardspy
- Created: 2018-11-29T09:46:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T11:05:12.000Z (over 7 years ago)
- Last Synced: 2025-02-15T15:45:26.849Z (over 1 year ago)
- Language: Emacs Lisp
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spaceblacken
Adds a `python-format-buffer` command to Spacemacs. Powered by [black](https://github.com/ambv/black) and [reformatter.el](https://github.com/purcell/reformatter.el).
## Usage
1. Clone this repository into your private layer directory (`~/.emacs.d/private/` by default).
2. Add `spaceblacken` to your `dotspacemacs-configuration-layers` and restart spacemacs.
In `python-mode`, press `, =` (evil) or `M-RET =` (emacs) to run the `python-format-buffer` command.
## Customisation
### spaceblacken-line-length
Passed as the `--line-length` argument to black. If set to `'fill`, uses the value of `fill-column`. Set to `'fill` by default.