384 B
384 B
JavaScript mode
I use js-mode for json files because js2-mode always complains about syntax errors.
Turn on electric pairing for js-mode buffers.
(add-hook 'js-mode-hook 'electric-pair-local-mode)
Turn on electric indent mode for js-mode buffers.
(add-hook 'js-mode-hook 'electric-indent-local-mode)