Fix emacs config.

This commit is contained in:
Tom Alexander
2024-12-20 13:59:09 -05:00
parent ba3a6e74eb
commit 2ce635d028
27 changed files with 58 additions and 33 deletions

View File

@@ -0,0 +1,17 @@
(defun xml-fmt ()
"Run xmllint --format."
(run-command-on-buffer "xmllint" "--format" "-")
)
(use-package nxml-mode
:commands (nxml-mode)
:pin manual
:ensure nil
:hook (
(nxml-mode . (lambda ()
(add-hook 'before-save-hook 'xml-fmt nil 'local)
))
)
)
(provide 'lang-xml)