Source

emacs / rc / javascript.el

Full commit
(autoload 'js2-mode "js2" nil t)

(setq auto-mode-alist
      (remove '("\\.js\\'" . javascript-mode)
              auto-mode-alist))
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))

(add-hook 'js2-mode-hook '(lambda () (yas/minor-mode 1)))

(setq js2-mirror-mode nil)
(setq js2-electric-keys nil)
(setq js2-mode-escape-quotes nil)

(setq-default js2-basic-offset 4)