mirror of
https://github.com/natefaubion/purescript-tidy.git
synced 2024-12-01 20:53:34 +03:00
Add note on spacemacs integration
This commit is contained in:
parent
740d42ed2b
commit
34d4efb33c
17
README.md
17
README.md
@ -67,9 +67,26 @@ $ purs-tidy generate-config --arrow-first --unicode-never --operators .tidyopera
|
||||
|
||||
## Editor Support
|
||||
|
||||
* [Spacemacs](#spacemacs)
|
||||
* [Vim](#vim)
|
||||
* [VS Code](#vs-code)
|
||||
|
||||
### Spacemacs
|
||||
|
||||
[Spacemacs' Purescript layer](https://github.com/syl20bnr/spacemacs/tree/develop/layers/%2Blang/purescript)
|
||||
supports formatting using purs-tidy out of the box.
|
||||
|
||||
You can run the formatter manually with either `M-x spacemacs/purescript-format` or with the shortcut `SPC m =`.
|
||||
|
||||
To enable automatic formatting of the buffer on save, enable `purescript-fmt-on-save` in your spacemacs config:
|
||||
|
||||
```elisp
|
||||
(setq-default dotspacemacs-configuration-layers '(
|
||||
(purescript :variables
|
||||
purescript-fmt-on-save t)))
|
||||
```
|
||||
|
||||
|
||||
### Vim
|
||||
|
||||
#### via [ALE](https://github.com/dense-analysis/ale)
|
||||
|
Loading…
Reference in New Issue
Block a user