conf-nxml.el 611 B

1234567891011121314151617181920212223
  1. ;;; Code:
  2. (require 'nxml-mode)
  3. (require 'editorconfig)
  4. ;; Config
  5. (setq nxml-slash-auto-complete-flag t)
  6. ;; I want keep the same indentation for attribute, by default is nxml-child-inden*2
  7. (add-to-list 'editorconfig-indentation-alist
  8. '(nxml-mode nxml-child-indent nxml-attribute-indent))
  9. ;; Functions
  10. (defun distopico:nxml-mode-hook ()
  11. "Hooks for `nxml-mode'."
  12. ;; Company-mode
  13. (add-to-list (make-local-variable 'company-backends)
  14. '(company-nxml company-dabbrev :with company-yasnippet)))
  15. ;; Hooks
  16. (add-hook 'nxml-mode-hook #'distopico:nxml-mode-hook)
  17. (provide 'conf-nxml)