fenollp / erlang-formatter

Format Erlang code using Emacs' erlang-mode
Apache License 2.0
45 stars 5 forks source link

Add save hook #15

Closed jamesaimonetti closed 3 years ago

jamesaimonetti commented 7 years ago

As far as I can tell, my Emacs setup has this hook to format the buffer on save and properly handles regex strings/binaries with '$'. I cannot recreate the failed formatting in CircleCI runs locally. Please see if this patch is sufficient to address the issue.

fenollp commented 7 years ago

Sorry just saw this! Yeah the TravisCI build shows some regressions (bla* and tabs tests). Any ideas on these?

Also, I'd rather we keep the code that logs errors, so can you define a function and make the hook-trigger thing call it instead?