mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(format): add :lang data formatter
This commit is contained in:
@ -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.")))
|
Reference in New Issue
Block a user