Skip to content

What does hi2-ifte-offset exactly mean? #9

@Javran

Description

@Javran

I don't understand what does this option means.
Saying I want to write an if expression and have it aligned in the following way:

main :: IO ()
main = if undefined
         then undefined
         else undefined

To be more specific, what I want is:
the line right after if to be 2 extra spaces, and then and else line up with each other.
So I set hi2-ifte-offset to be 2.
If I type in the expression without a tab, I end up with this identation:

main = if undefined
          then undefined
               else undefined

If I hit <tab> every time after I type in then or else, I end up with this:

main = if undefined
       then undefined
       else undefined

And hi2-ifte-offset dosen't seem to affect this behavior.

Maybe I've totally misunderstood those options, so I open this issue hoping to clean up my confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions