aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2022-09-14 19:08:37 -0700
committerRadon Rosborough <radon@intuitiveexplanations.com>2022-09-14 19:08:37 -0700
commit7aa46ba84f06251f280d226f98cb06ef83a0a697 (patch)
tree296d3004841cf258cbf2d4ddc1e736b6fc16cb53
parent1eedb7e6665f84ef461d227cd875d60f23c5e499 (diff)
Fix json-mode not working
-rw-r--r--apheleia.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/apheleia.el b/apheleia.el
index 43b97c6..16ae04b 100644
--- a/apheleia.el
+++ b/apheleia.el
@@ -1102,6 +1102,8 @@ function: %s" command)))
(defcustom apheleia-mode-alist
'(;; php-mode has to come before cc-mode
(php-mode . phpcs)
+ ;; json-mode has to come before javascript-mode (aka js-mode)
+ (json-mode . prettier-json)
;; rest are alphabetical
(beancount-mode . bean-format)
(cc-mode . clang-format)
@@ -1121,7 +1123,6 @@ function: %s" command)))
(java-mode . google-java-format)
(js3-mode . prettier-javascript)
(js-mode . prettier-javascript)
- (json-mode . prettier-json)
(kotlin-mode . ktlint)
(latex-mode . latexindent)
(LaTeX-mode . latexindent)