Skip to content

Commit

Permalink
tweak(apheleia): add an option for +xmllint-indent to set indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 30, 2024
1 parent f652ab1 commit d8af747
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ Fall back to the default `citre--project-root'."
(apheleia-remote-algorithm 'local) ; format remote files using local formatters
:init
(+map! "cff" #'apheleia-format-buffer)
(defvar +xmllint-indent " ")
:config
(add-hook 'nxml-mode-hook (defun +xmllint--set-indent-h () (setenv "XMLLINT_INDENT" +xmllint-indent)))
(push '(nxml-mode . xmllint) apheleia-mode-alist))

(use-package editorconfig
Expand Down

0 comments on commit d8af747

Please sign in to comment.