Browse Source

Add json-mode default offset

master
10sr 3 years ago
parent
commit
c3c718df1b
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      emacs.el

+ 5
- 0
emacs.el View File

@@ -2167,6 +2167,11 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called."
(when (fboundp 'json-mode) (when (fboundp 'json-mode)
(add-to-list 'auto-mode-alist (add-to-list 'auto-mode-alist
'("/Pipfile\\.lock\\'" . json-mode))) '("/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 (add-hook 'go-mode-hook
(lambda() (lambda()


Loading…
Cancel
Save