about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-xml.el
blob: ec9d6b95249b2a625b0e5b172dd1c5ec7627d01e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; init-xml.el --- XML Configuration File -*- lexical-binding: t -*-
;;; Commentary:
;; Based on prelude-xml.el
;;; Code:

(use-feature nxml-mode
  :config
  (push '("<\\?xml" . nxml-mode) magic-mode-alist)
  (add-to-list 'auto-mode-alist '("\\.pom\\'" . nxml-mode))
  :custom
  (nxml-child-indent 4)
  (nxml-attribute-indent 4)
  (nxml-auto-insert-xml-declaration-flag nil)
  (nxml-bind-meta-tab-to-complete-flag t)
  (nxml-slash-auto-complete-flag t))

(provide 'init-xml)
;;; init-xml.el ends here