diff options
author | David Morgan <djm_uk@protonmail.com> | 2021-08-17 12:49:19 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2021-08-17 12:49:19 +0100 |
commit | d0db5660caa836755ea8c99471d816484ea9e837 (patch) | |
tree | c7d0456a58e450abaf34b489b0b31c58ddbc8557 /.emacs.d/lisp/init-xml.el | |
parent | c92b18514728245850d31531ce224a74eddfc5a6 (diff) | |
download | dotfiles-d0db5660caa836755ea8c99471d816484ea9e837.tar.gz |
Add new .emacs.d
Diffstat (limited to '.emacs.d/lisp/init-xml.el')
-rw-r--r-- | .emacs.d/lisp/init-xml.el | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-xml.el b/.emacs.d/lisp/init-xml.el new file mode 100644 index 0000000..5a3d162 --- /dev/null +++ b/.emacs.d/lisp/init-xml.el @@ -0,0 +1,20 @@ +;;; init-xml.el --- XML Configuration File -*- lexical-binding: t -*- +;;; Commentary: +;; Based on prelude-xml.el +;;; Code: + +(use-package nxml-mode + :ensure nil + :config + (push '("<\\?xml" . nxml-mode) magic-mode-alist) + ;; pom files should be treated as xml files + (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 |