3 ms·
How about a command for closing whatever tag is open where the cursor is? For repeating the last closed tag? For wrapping a tag in another tag? I'm an emacs no
by misuba 17y ago
How about a command for closing whatever tag is open where the cursor is? For repeating the last closed tag? For wrapping a tag in another tag?
I'm an emacs noob but it seems like the tools for actually working with existing markup are impoverished. You only write markup once; you have to maintain it forever.
- mccutchen 17y ago> How about a command for closing whatever tag is open where the cursor is? Try `C-h m` to find out what commands your HTML editing mode provides. In HTML Mode, `C-c /` closes the current element, and in nxml mode, `C-c C-f` does the same thing. Even better, in nxml mode, when `nxml-slash-auto-complete-flag` is non-nil the current element is automatically closed when you type a "/". The nice thing about Emacs is that it's pretty trivial to write a little elisp code to add the other functionality you're looking for.