-
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
Rethink structured-haskell-mode keybindings #1048
Comments
Also, maybe we could use some ideas from evil-lisp-state. It seems like SHM is a similar concept but has less actions. |
I agree that SHM is not doing much in spacemacs. I wonder where would be a good place to work on it?
I'd love to know how SHM author @chrisdone thinks it should work. |
A new |
I am using Spacemacs with emacs editing style and for me |
We finally removed it from haskell layer in develop branch. |
I have been trying to wrap my head around structured haskell mode. By default
)
and(
are mapped to movements. The problem is thato
andO
functionality is missing because you have to choose the right block before you can create a newline otherwise the indentation will be incorrect. I have found that binding ")" in normal mode to switch to insert mode and doshm/close-paren
improved the workflow a bit. I have tried doing that without switching to insert mode but then the cursor is at the wrong position in the end of line (common evil-mode issue).What's interesting though is that basically structured-haskell-mode is trying to emulate vim text objects in some way. It already has some sort of selection which is different from evil's selection. I wonder if there is a better way to integrate it with evil-mode.
The text was updated successfully, but these errors were encountered: