4 ms·
> 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 Mod
by 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.