prettier / prettier-emacs

Minor mode to format JS code on file save
http://jlongster.com/A-Prettier-Formatter
375 stars 54 forks source link

Support other prettier bin commands #34

Open rstacruz opened 6 years ago

rstacruz commented 6 years ago

prettier_d is a package that makes prettier run faster by delegating to a background server. It'd be nice to have support for this!

matthugs commented 6 years ago

One can customize the command used by prettier-emacs; it's exposed as prettier-js-command.

Trying out customizing it myself, it looks like prettier_d puts errors in stdout rather than stderr. This should probably be fixed upstream, such that it's more of a drop-in replacement. Seems like it's a straightforward thing to workaround, however.