ormolu.el icon indicating copy to clipboard operation
ormolu.el copied to clipboard

Add instructions for additional Emacs/Ormolu alignment

Open sellout opened this issue 4 years ago • 0 comments

Reformat-on-save is great, but it'd be helpful if I could configure Emacs to get pretty close to Ormolu style as I edit it. E.g., currently, when I type foo =<RET>bar<RET>baz Emacs does

foo =
  bar
  baz

but Ormolu wants it to be

foo =
  bar
    baz

and no amount of <TAB>-ing will get it to match Ormolu. Is there some combination of additional variables that I can configure to get me closer to Ormolu? Even better would be some hook that would set those variables for me in haskell-mode, but just having a list of things I can set would help a bunch.

sellout avatar Aug 26 '20 18:08 sellout