aboutsummaryrefslogtreecommitdiffstats
path: root/oni-nxml
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2020-02-28 10:28:21 -0800
committerGravatar Tom Willemsen2020-02-28 10:28:21 -0800
commit9c5d65170e8bc57e29f6681bf6a1c5220c4fce05 (patch)
tree1de666ae601365832345bd97acd762d0b4b88c2c /oni-nxml
parent07eb2c1cc1caee0631bbc7dfba5d5399fc7c383d (diff)
downloademacs-config-9c5d65170e8bc57e29f6681bf6a1c5220c4fce05.tar.gz
emacs-config-9c5d65170e8bc57e29f6681bf6a1c5220c4fce05.zip
Add xmllint reformatter for nxml-mode
Diffstat (limited to 'oni-nxml')
-rw-r--r--oni-nxml/oni-nxml.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/oni-nxml/oni-nxml.el b/oni-nxml/oni-nxml.el
index 07c1c87..0ba3390 100644
--- a/oni-nxml/oni-nxml.el
+++ b/oni-nxml/oni-nxml.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2019.1210.225630
-;; Package-Requires: (oni-yasnippet)
+;; Version: 2020.0228.102451
+;; Package-Requires: (oni-yasnippet reformatter)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -52,6 +52,11 @@
(add-hook 'nxml-mode-hook 'oni-nxml--auto-fill-mode)
+(reformatter-define oni-nxml-xmllint
+ :program "xmllint"
+ :args '("--nonet" "--format" "-")
+ :lighter "")
+
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.targets\\'" . nxml-mode))
;;;###autoload