2016-10-10 22:28:55 +02:00
|
|
|
#+TITLE: 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.
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(add-hook 'js-mode-hook 'electric-pair-local-mode)
|
|
|
|
#+END_SRC
|
2016-10-10 22:32:04 +02:00
|
|
|
|
|
|
|
Turn on electric indent mode for js-mode buffers.
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(add-hook 'js-mode-hook 'electric-indent-local-mode)
|
|
|
|
#+END_SRC
|