Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

js-mode for .json

  • Loading branch information...
commit e5621d424592b678d6ec462874cd03a103d186ac 1 parent 5af15cf
@nelhage authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  dot-emacs
View
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)
Please sign in to comment.
Something went wrong with that request. Please try again.