How to efficiently type in a pair of XML tags such as <tag></tag> in Emacs?
I am hoping some sort of auto-complete behavior.
Add the following to your .emacs file.
;; associate xml, xsd, etc with nxml-mode
(add-to-list 'auto-mode-alist (cons (concat "\\." (regexp-opt '("xml" "xsd" "rng" "xslt" "xsl") t) "\\'") 'nxml-mode))
set the automplete flag to true
(setq nxml-slash-auto-complete-flag t)
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago