millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

Emacs integration #459

Open FrancisMurillo opened 7 years ago

FrancisMurillo commented 7 years ago

Emacs anyone? We got vi and atom so it intrigues me why this editor is missing.

jonboiser commented 7 years ago

@FrancisMurillo after reading syl20bnr/spacemacs#2850, I tried writing an emacs command to do this.

https://github.com/jonboiser/esformatter.el

It's pretty basic. It has no error handling, and is not configurable. I really only know basic elisp, but if people are interested in this script, I'd be open to keep working on it and reach feature parity with the other editor integrations.

FrancisMurillo commented 7 years ago

@jonboiser, after searching around I came across jsfmt which uses esformatter under the hood. It works enough but I am not expert in it's configuration. Maybe an entry on the wiki might be nice.

Btw, awesome that you came up a package in such a short time.