-
Notifications
You must be signed in to change notification settings - Fork 347
Support shallow indentation #366
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
Comments
Sure: choose simple-indent mode. |
I don't think that's it! Simple mode aligns code to each successive "non-whitespace character following whitespace" as noted in the docs:
|
Or don't use any indentation mode at all then. |
Doesn't haskell-mode protest loudly when no indentation mode is set? |
That's what I ran into and what led to this question. @ivan-m, how does one turn off all indentation modes? |
I have |
Huh... I don't have any indentation set, but then again I'm using structured-haskell-mode which might be setting it. |
Ok, glad that works well! The issue here is
|
@mkscrg: Me too! This is a reallly good idea as one of possible options for |
So I worked a little on this and |
I find myself writing Haskell with mostly 4-space indents from the prior line. That applies in a lot of cases, e.g.
or
In fact, I find myself using 4-space indentation much more often than "align under start of this expression", which seems to be the
haskell-mode
approach.Can I use
haskell-mode
with its indentation features disabled? 4-space indents are really easy to maintain by hand, and I findhaskell-mode
's other features very useful!The text was updated successfully, but these errors were encountered: