In LaTeX-mode, there is latex-close-block, bound to C-c C-e.

Is there a function to programmatically close an XML tag in nXML-mode?

1 Answer 1


You can close an XML block in nXML-mode via

C-c /

To find such functions, have a look at the mode's description, accessible via C-h m when in nXML-mode. It says

C-c / finishes the current element by inserting an end-tag.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.