From 9c5d65170e8bc57e29f6681bf6a1c5220c4fce05 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 28 Feb 2020 10:28:21 -0800 Subject: Add xmllint reformatter for nxml-mode --- oni-nxml/oni-nxml.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'oni-nxml') 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 ;; 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 -- cgit v1.2.3-54-g00ecf