-
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
haskell: Add all haskell-mode keybindings to haskell-literate-mode #3459
haskell: Add all haskell-mode keybindings to haskell-literate-mode #3459
Conversation
This is because |
What you might want to do is to copy some key bindings from |
@d12frosted Alright, that's what I did originally but figured it would be better to separate into a new function. Should have known that was wrong when it didn't work. |
By the way, here is some useful info about creating new layer in spacemacs. Not that you are creating one, but worth reading when you supporting / improving existing layers 😄
Yeah, it's a good idea to separate into different functions, but you copied the whole thing 😄 P. S. After you work on this PR is done (it's working and you thin it's ready to be merged / cherry picked) you should squash all commits into one, since it's simple improvement 😄 |
989741f
to
258b56a
Compare
@d12frosted Thanks for the help. I think I should add the literate-haskell keybindings to my own layer until they get into master. Is that how you recommend handling stuff like that? |
@d12frosted Thanks again! I made a temporary layer to add those keybindings until these changes are merged with master. |
Thanks for this, but can you do something about the code duplication? (dolist (m '(haskell-mode literate-haskell-mode))
(evil-leader/set-key-for-mode m
;; ....
)) |
Sure! I had a feeling something like that was possible.
|
Oops... pushed on accident. Have a small error and fixing it now. |
2639b95
to
17bf582
Compare
Another improvement may be to extract |
@codygman @StreakyCobra @TheBB any update on this pr? |
You're going to need to rebase this @codygman ;) Also squash your commits. |
When this will have been rebased/squashed and remarks would have been addressed, I think this one is a good candidate for merge :-) |
I have a rebased version here: #4992 |
This actually isn't working. For some reason haskell/init-literate-haskell-mode isn't being called and I'm not sure why. The code is a simple copy of init-haskell-mode with small modifications for haskell-literate-mode.
Issue #3458 is related to this.