1
0
Fork 0

Add xmllint reformatter for nxml-mode

This commit is contained in:
Tom Willemsen 2020-02-28 10:28:21 -08:00
parent 07eb2c1cc1
commit 9c5d65170e

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2019.1210.225630 ;; Version: 2020.0228.102451
;; Package-Requires: (oni-yasnippet) ;; Package-Requires: (oni-yasnippet reformatter)
;; This program is free software; you can redistribute it and/or modify ;; 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 ;; 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) (add-hook 'nxml-mode-hook 'oni-nxml--auto-fill-mode)
(reformatter-define oni-nxml-xmllint
:program "xmllint"
:args '("--nonet" "--format" "-")
:lighter "")
;;;###autoload ;;;###autoload
(add-to-list 'auto-mode-alist '("\\.targets\\'" . nxml-mode)) (add-to-list 'auto-mode-alist '("\\.targets\\'" . nxml-mode))
;;;###autoload ;;;###autoload