Add xmllint reformatter for nxml-mode
This commit is contained in:
parent
07eb2c1cc1
commit
9c5d65170e
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue