[erlang-questions] erlfmt?

Roger Lipscombe roger@REDACTED
Thu Apr 28 09:09:20 CEST 2016


I use vimerl (https://github.com/jimenezrick/vimerl), which has an
escript included:
https://github.com/jimenezrick/vimerl/blob/master/indent/erlang_indent.erl

I *believe* that it's equivalent to Emacs erlang-mode, but I don't
have Emacs installed :-P

On 28 April 2016 at 07:24, Pierre Fenoll <pierrefenoll@REDACTED> wrote:
> I made https://github.com/fenollp/erlang-formatter though it depends on
> OTP's Emacs erlang-mode.
>
> erlang-mode has been the de facto authority in terms of linting.
> However it has some issues, like when indenting typed record definitions.
>
> Dropping the dependency on Emacs would be great but again, which dev/CI
> machine doesn't have Emacs?
>
> On 28 Apr 2016, at 00:46, Tristan Sloughter <t@REDACTED> wrote:
>
> Short answer: No.
>
> Long answer: No, but I'd love for someone with the time to clean up
> https://github.com/tsloughter/erl_tidy which is a rebar3 plugin named `fmt`
> around erl_tidy. the erl_tidy code has issues with type specs and other
> newer syntax and will currently just dump out the AST for those. These fixes
> would then, of course, need to be submitted upstream to OTP, but this plugin
> provides a testing ground and hopefully motivation to someone out there :)
>
> --
> Tristan Sloughter
> t@REDACTED
>
>
>
> On Wed, Apr 27, 2016, at 05:37 PM, Mark Bucciarelli wrote:
>
> Hi,
>
> I'm wondering if anyone here uses or knows of a utility like gofmt for
> Erlang.  If you're not familiar with gofmt, it simply reads source code on
> stdin and writes formatted source code to stdout.
>
> I looked at erl_tidy but cannot see how to make it read stdin.
>
> Thanks,
>
> Mark
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list