aboutsummaryrefslogtreecommitdiff
path: root/apheleia.el
diff options
context:
space:
mode:
authorrealazy <xianan.chen@gmail.com>2023-10-01 12:40:04 +0800
committerGitHub <noreply@github.com>2023-09-30 21:40:04 -0700
commit1fae320aaef2c1c9ce40125aaff5cd75f6cf7480 (patch)
tree8ce730cd42d09b07afb24d7f3cae9ff659438f1f /apheleia.el
parentbac7277ed0c344e3c15b2493911a31b73f99ba85 (diff)
Use `prettier-json` for `js-json-mode` (#209)
By default Emacs 29 uses `js-json-mode` for JSON file (correct me if I'm wrong), this pr enables the right formatter for this mode.
Diffstat (limited to 'apheleia.el')
-rw-r--r--apheleia.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/apheleia.el b/apheleia.el
index 3d22978..69dad91 100644
--- a/apheleia.el
+++ b/apheleia.el
@@ -249,6 +249,7 @@ rather than using this system."
(java-mode . google-java-format)
(java-ts-mode . google-java-format)
(js3-mode . prettier-javascript)
+ (js-json-mode . prettier-json)
(js-mode . prettier-javascript)
(js-ts-mode . prettier-javascript)
(json-mode . prettier-json)