Enabling automatic slash completion in nXML-Mode
I do a lot of DocBook XML editing, either at my job or at home. Because of that I've built up a pretty customized .emacs file. Every so often I meet another person whose also found themselves having to edit a bunch of XML. The most fantastic thing about nXML mode I think is the automatic slash completion feature. It works like this: If I have an open element, say I've started an
-
Enter nxml-mode
-
M-x customize-apropos
-
nxml-slash
-
Press Toggle on
-
Optionally: select "Save for future sessions"
For even more fun, use the C-c C-f macro which will auto complete your current block, regardless of your position inside of it. For additional references, I invite you to check out the docs NM Tech has posted on nXML-Mode.