reddit / emacs

I need some tips on adding these 2 specific functionalities to Emacs's emmet-mode:

zeta_00 ยท 2022-01-30 05:23
Greetings, I'm using emmet-mode for web development in Emacs which is going good, but I'm trying to figure out how to add these 2 pieces of functionality: * drop-down-menu-list(I already have yasnippet and hippie-expand enabled and combined with my emmet-mode config), But, I have no idea why a drop down menu is not appearing when I start typing while emmet-mode is enabled? * For example, when I type: html and then press the ctrl-j keybinding, it automatically creates an opening and closing tag and inserts the the cursor between the tag, but most of the time, after doing this I press: Enter to move the closing tag to the next line, then I manually move the cursor at the end of the opening tag and press: Enter again, which creates a gap in-between the closing and opening tag and automatically places the cursor in the gap, correctly indented. So I was wondering if there's a way that I could add this extra functionality to automate this for me, that way I just have to type the name of the tag like: html, then press Enter on an emmet code snippet in the drop-down-menu-list, which will then create the tags, but with the ending tag 2 lines below the starting tag with the cursor indented in between the gap. I hope that I explained this well enough. * Functionality to be able and press tab to move the cursor between things like tags and strings in html. Example: * type: html * choose emmet snippet from drop-down-menu-list * automatically expands like this: <html> | (indented cursor automatically placed in-between opening and closing tags) </html> Thanks in advance for the help.