This commit is contained in:
Tom Alexander
2025-09-07 15:11:11 -04:00
parent 40dc19eaea
commit 7c506f9e7f
4 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
(defun d2-format-buffer ()
"Run prettier."
(interactive)
(run-command-on-buffer "d2" "fmt" "-")
)
(use-package d2-mode
:commands (d2-mode)
:hook (
(d2-mode . (lambda ()
;; (add-hook 'before-save-hook 'd2-format-buffer nil 'local)
))
)
)
(provide 'lang-d2)