There seems to be a bug in the indenter that mis-indents rebar.erl:commands/0, if it's indented as part of a larger region. The multi-line binary string seems to be the problem. rebar.erl:commands/0: https://github.com/basho/rebar/blob/491d52298e2/src/rebar.erl#L275-311 It works correctly when indenting the function itself with C-c C-q.