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.
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)
markdown-mode
, I need to switch between markdown-mode
and nxml-mode
frequently. Any suggestion?