-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Reset indentation in haskell after an empty line #1704
Comments
No, I don't have such problem. Does it still occur for you? |
@meditans could you please post the result of Update Oh, and also, if you have any custom haskell configurations, please specify them 😄 (if it's nothing sensitive). |
This seems to have the desired effect for me. (defun bb/stuff ()
(when (and (< 1 (line-number-at-pos))
(save-excursion
(forward-line -1)
(string= "" (s-trim (buffer-substring (line-beginning-position) (line-end-position))))))
(delete-region (line-beginning-position) (point))))
(advice-add 'haskell-indentation-newline-and-indent
:after 'bb/stuff) Just dumping that here so I won't forget it. |
Ok, looks like it was me who had some funky configs - I am able to reproduce it as well. So will work on solution. |
Updated documentation in #3544. |
Hi, when hitting enter in haskell-mode, the cursor is usually in the middle of the line (in the most consistent place indentation-wise).
Before using spacemacs, however, I remember setting an option which resets the indentation when the user skips a line (in this way it's possible to start a new function without hitting
S-Tab
). However I don't find that option again.Do you have the same problem?
The text was updated successfully, but these errors were encountered: