
<tag></tag>
Emacs 와 같은 XML 태그 쌍을 효율적으로 입력하는 방법은 무엇입니까 ?
나는 일종의 자동 완성 동작을 기대하고 있습니다.
답변1
.emacs 파일에 다음을 추가하십시오.
;; 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))
자동 완성 플래그를 true로 설정
(setq nxml-slash-auto-complete-flag t)