(setq js2-mode-show-parse-errors nil)
(setq js2-mode-show-strict-warnings nil)
(setq js--declaration-keyword-re "x^") ; declarations should have normal indentation
+(when (require 'tern nil 'noerror)
+ (add-hook 'js2-mode-hook (lambda () (tern-mode t))))
(require 'markdown-mode)
(define-key markdown-mode-map (kbd "M-{") 'markdown-beginning-of-block)