From c3c718df1b7f719a4024c227fc819682df07fa6d Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 28 Sep 2021 10:23:05 +0900 Subject: [PATCH] Add json-mode default offset --- emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs.el b/emacs.el index 6fde5f5..a561c27 100644 --- a/emacs.el +++ b/emacs.el @@ -2167,6 +2167,11 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called." (when (fboundp 'json-mode) (add-to-list 'auto-mode-alist '("/Pipfile\\.lock\\'" . json-mode))) +(add-hook 'json-mode-hook + (lambda () + ;; Stop current line highlighting + (set-variable 'js-indent-level 2 t) + )) (add-hook 'go-mode-hook (lambda()