Skip to content
Browse files

js-mode for .json

  • Loading branch information...
1 parent 5af15cf commit e5621d424592b678d6ec462874cd03a103d186ac @nelhage committed Oct 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 dot-emacs
1 dot-emacs
@@ -720,6 +720,7 @@ unable to perform symbol completion.")
;; Javascript
(autoload 'moz-minor-mode "moz" "Mozilla Minor and Inferior Mozilla Modes" t)
(autoload 'js2-mode "js2" nil t)
+(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.json$" . js-mode))
(add-to-list 'interpreter-mode-alist '("node" . js2-mode))
; (add-hook 'js2-mode-hook 'moz-minor-mode)

0 comments on commit e5621d4

Please sign in to comment.
Something went wrong with that request. Please try again.