+;;; init-javascript.el  --- initialize javascript environment
+;;;
+;;; Commentary:
+;;;     Init the javascript environment
+;;;
+;;; Code:
+
 (require-package 'json-mode)
 (maybe-require-package 'js2-mode)
 (maybe-require-package 'ac-js2)



(provide 'init-javascript)

  (setq-default js2-mode-show-parse-errors nil
                js2-mode-show-strict-warnings nil)
  ;; ... but enable it if flycheck can't handle javascript


  (add-hook 'js2-mode-hook (lambda () (setq mode-name "JS2")))

  (add-hook 'js-mode-hook 'js2-minor-mode)
  (add-hook 'js2-mode-hook 'ac-js2-mode)

  (setq-default
   js2-basic-offset preferred-javascript-indent-level
