Add note on spacemacs integration

This commit is contained in:
Anupam Jain 2021-08-20 09:27:15 +05:30 committed by Nathan Faubion
parent 740d42ed2b
commit 34d4efb33c

View File

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