spacemacs 2024-08-22

I am trying out web-mode to create some html. I wanted to use emmet to expand some HTML abbreviations like

a                        <a href=""></a>
a.x                      <a class="x" href=""></a>
The Keybinding to expand seems to be C-j However this is conflicting with the suggestions from autocomplete as seen in the Screenshot. C-j instead of expanding then navigates the suggestions. How to I deal with this? I want to keep the auto suggestions. Do I have to rebind the expansion? What would be a good key? Or am I not supposed to do it like this and there is a more "Evil" way to use emmet in Spacemacs?

Does this closed issue help? https://github.com/syl20bnr/spacemacs/issues/10514 It seems like C-return is the key binding by default?

Yes, Thanks a lot! c-return does the trick. However I feel like I should be able to figure the Spacemacs specific keybindings out myself in the future. Out of curiosity is there an easy way to do this? Or for my understanding How do the Spacemacs key bindings Work? I was trying C-h emmet-expand-line which gave me only C-j . I then checked C-return via F1 k and it turned out that this is a different command. Instead of emmet-expand-line it executes spacemacs/emmet-expand. Where would I find the documentation on stuff like this? For example I wanted to learn Spacemacs HTML editing. So I went and read https://develop.spacemacs.org/layers/+lang/html/README.html But all info there is about emmet is a link to emmet github which has all its documentation for normal emacs and not spacemacs. So where would I be able to see the spacemacs specific stuff on a given package. I mean maybe there is more then just C-return. I feel like this is a general problem for me. Is there some other documentation, maybe in spacemacs itself, where I could check something like this? P.s. sorry for the long follow-up

Never mind. I just double checked the documentation and at the very end for web-mode there is this: So I guess I just have to read more carefully next time.

🎉 2

Another thing worth trying is using emacs’ apropos commands. C-h a is a good place to start. I think if you had searched for emmet the spacemacs-specific function that you found would have come up that way.

Yes. I will keep that one in mind. Thanks

👍 1