feat(format): add :lang data formatter
This commit is contained in:
parent
53fe5df6b5
commit
f80f52ba4f
2 changed files with 8 additions and 1 deletions
|
@ -8,7 +8,9 @@
|
||||||
(setq nxml-slash-auto-complete-flag t
|
(setq nxml-slash-auto-complete-flag t
|
||||||
nxml-auto-insert-xml-declaration-flag t)
|
nxml-auto-insert-xml-declaration-flag t)
|
||||||
(set-company-backend! 'nxml-mode '(company-nxml company-yasnippet))
|
(set-company-backend! 'nxml-mode '(company-nxml company-yasnippet))
|
||||||
(setq-hook! 'nxml-mode-hook tab-width nxml-child-indent))
|
(setq-hook! 'nxml-mode-hook tab-width nxml-child-indent)
|
||||||
|
(when (executable-find "xmllint")
|
||||||
|
(set-formatter! 'xmllint '("xmllint" "--format" "-") :modes '(nxml-mode))))
|
||||||
|
|
||||||
|
|
||||||
;;;###package csv-mode
|
;;;###package csv-mode
|
||||||
|
|
5
modules/lang/data/doctor.el
Normal file
5
modules/lang/data/doctor.el
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
;;; lang/data/doctor.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(when (modulep! :editor format)
|
||||||
|
(unless (executable-find "xmllint")
|
||||||
|
(warn! "Couldn't find xmllint. Formatting will be disabled.")))
|
Loading…
Add table
Add a link
Reference in a new issue