prettier/editors/emacs/README.md

9 lines
170 B
Markdown
Raw Normal View History

Add this to your init:
```elisp
(require 'prettier-js)
(add-hook 'js-mode-hook
(lambda ()
2017-01-11 03:36:09 +03:00
(add-hook 'before-save-hook 'prettier-before-save)))
```