From 41677f6be2c31ee9db0565b91ccd5d75f8ae37d1 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 4 Nov 2022 10:23:29 -0400 Subject: [PATCH] Use indent level of 2 in js/json files --- emacs/.emacs.d/config/init-js.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/config/init-js.el b/emacs/.emacs.d/config/init-js.el index c573836..b656f0d 100644 --- a/emacs/.emacs.d/config/init-js.el +++ b/emacs/.emacs.d/config/init-js.el @@ -16,7 +16,9 @@ (use-package json-mode :commands (json-mode) - :mode ("\\.json\\'")) + :mode ("\\.json\\'") + :custom + (js-indent-level 2)) (use-package jq-mode :commands (jq-interactively)) @@ -25,7 +27,9 @@ :straight (:type built-in) :defer t :config - (add-hook 'js-mode-hook #'lsp-deferred)) + (add-hook 'js-mode-hook #'lsp-deferred) + :custom + (js-indent-level 2)) ;; Make sure we load LSP in React files (with-eval-after-load 'lsp-clients