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

Four space indentation #1788

Closed
bjourne opened this issue Nov 3, 2022 · 2 comments
Closed

Four space indentation #1788

bjourne opened this issue Nov 3, 2022 · 2 comments

Comments

@bjourne
Copy link

bjourne commented Nov 3, 2022

By default haskell-mode indents with two spaces:

main = do
  opts <- execParser optsParser

I want the indentation step to be four spaces but there is no configuration for that:

main = do
    opts <- execParser optsParser
@bernhard-herzog
Copy link

The haskell-indentation.el module has a few variables for this.
E.g. setting haskell-indentation-left-offset to 4 should achieve what
you want.

There are a few more variables like this that you might also want to
change.

@purcell purcell closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2022
@bjourne
Copy link
Author

bjourne commented Nov 13, 2022

I tried to find information on how to customize indentation in the manual but couldn't find anything.

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

3 participants