diff options
author | 2020-02-28 10:28:21 -0800 | |
---|---|---|
committer | 2020-02-28 10:28:21 -0800 | |
commit | 9c5d65170e8bc57e29f6681bf6a1c5220c4fce05 (patch) | |
tree | 1de666ae601365832345bd97acd762d0b4b88c2c | |
parent | 07eb2c1cc1caee0631bbc7dfba5d5399fc7c383d (diff) | |
download | emacs-config-9c5d65170e8bc57e29f6681bf6a1c5220c4fce05.tar.gz emacs-config-9c5d65170e8bc57e29f6681bf6a1c5220c4fce05.zip |
Add xmllint reformatter for nxml-mode
-rw-r--r-- | oni-nxml/oni-nxml.el | 9 |
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 |