Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for additional Emacs/Ormolu alignment #11

Open
sellout opened this issue Aug 26, 2020 · 0 comments
Open

Add instructions for additional Emacs/Ormolu alignment #11

sellout opened this issue Aug 26, 2020 · 0 comments

Comments

@sellout
Copy link
Contributor

sellout commented Aug 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant