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

Rethink structured-haskell-mode keybindings #1048

Closed
EDmitry opened this issue Apr 3, 2015 · 5 comments
Closed

Rethink structured-haskell-mode keybindings #1048

EDmitry opened this issue Apr 3, 2015 · 5 comments

Comments

@EDmitry
Copy link

EDmitry commented Apr 3, 2015

I have been trying to wrap my head around structured haskell mode. By default ) and ( are mapped to movements. The problem is that o and O 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 do shm/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.

@EDmitry
Copy link
Author

EDmitry commented Apr 8, 2015

Also, maybe we could use some ideas from evil-lisp-state. It seems like SHM is a similar concept but has less actions.

@gitfoxi
Copy link

gitfoxi commented Jun 17, 2015

I agree that SHM is not doing much in spacemacs. I wonder where would be a good place to work on it?

  • Spacemacs
  • evil-lisp-mode
  • A new evil-haskell-mode

I'd love to know how SHM author @chrisdone thinks it should work.

@jb55
Copy link
Contributor

jb55 commented Jun 17, 2015

A new evil-haskell-mode would be great 👍

@d12frosted
Copy link
Collaborator

I agree that SHM is not doing much in spacemacs.

I am using Spacemacs with emacs editing style and for me shm is priceless. But having evil-haskell-mode will not hurt me - I will still use shm 😄

@syl20bnr
Copy link
Owner

We finally removed it from haskell layer in develop branch.
It may come back in a better shape at some point :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants