conf-nxml.el 846 B

1234567891011121314151617181920
  1. ;; nxml mode init
  2. (add-hook 'nxml-mode-hook (lambda ()
  3. (setq Lorem-ipsum-paragraph-separator "<br><br>\n"
  4. Lorem-ipsum-sentence-separator "&nbsp;&nbsp;"
  5. Lorem-ipsum-list-beginning "<ul>\n"
  6. Lorem-ipsum-list-bullet "<li>"
  7. Lorem-ipsum-list-item-end "</li>\n"
  8. Lorem-ipsum-list-end "</ul>\n")
  9. (setq rng-schema-locating-files (list "~/.emacs.d/nxml-schemas/schemas.xml" "schemas.xml"))))
  10. (add-to-list 'auto-mode-alist
  11. '("\\.\\(x[ms]l\\|rng\\|x?html?\\)\\'" . nxml-mode))
  12. (setq
  13. nxml-child-indent 2
  14. nxml-outline-child-indent 2
  15. nxml-slash-auto-complete-flag t)
  16. (provide 'init-nxml)