aboutsummaryrefslogtreecommitdiff
path: root/+format.el
diff options
context:
space:
mode:
authorMagdalena Szweda <roughlynamed@disroot.org>2026-09-18 20:01:57 +0200
committerMagdalena Szweda <hi@roughlynamed.net>2026-09-21 19:05:12 +0200
commit376841ef8ee82afcfcdbfe95d196931c0b5c931e (patch)
tree7174f178136a03a8443fc6bcb214d4c0e44c12be /+format.el
parent8ee08f6c356d6aaf5ea9f9e644c126a683ca948f (diff)
so so much stuff
Diffstat (limited to '+format.el')
-rw-r--r--+format.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/+format.el b/+format.el
index 93d15c1..c5bbc79 100644
--- a/+format.el
+++ b/+format.el
@@ -1,11 +1,10 @@
;;; $DOOMDIR/+format.el -*- lexical-binding: t; -*-
-
-(use-package! format-all
- :commands format-all-mode
- :hook (prog-mode . format-all-mode)
+(use-package! apheleia
+ :hook (prog-mode . apheleia-mode)
:config
- (add-to-list 'format-all-mode-hook 'format-all-ensure-formatter))
-(with-eval-after-load 'format-all
- (setq-default format-all-formatters
- '(("HTML" (oxfmt "--config=.oxfmtrc.json"))
- ("CSS" (oxfmt "--config=.oxfmtrc.json")))))
+ (setf (alist-get 'oxfmt apheleia-formatters)
+ '("oxfmt" "--config=.oxfmtrc.json" "--stdin-filepath" filepath))
+
+ (dolist (mode '(html-mode mhtml-mode web-mode css-mode))
+ (setf (alist-get mode apheleia-mode-alist) 'oxfmt)))
+