* files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).
authorChong Yidong <cyd@stupidchicken.com>
Sun, 24 Apr 2011 00:24:30 +0000 (20:24 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 24 Apr 2011 00:24:30 +0000 (20:24 -0400)
lisp/ChangeLog
lisp/files.el

index 4b83898..c83f8d5 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-24  Chong Yidong  <cyd@stupidchicken.com>
 
+       * files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).
+
        * apropos.el (apropos-label-face): Avoid variable-pitch face.
        (apropos-accumulator): Doc fix.
        (apropos-function, apropos-macro, apropos-command)
index 8cd5699..72cfc89 100644 (file)
@@ -2386,6 +2386,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
      ("\\.dtd\\'" . sgml-mode)
      ("\\.ds\\(ss\\)?l\\'" . dsssl-mode)
      ("\\.js\\'" . js-mode)            ; javascript-mode would be better
+     ("\\.json\\'" . js-mode)
      ("\\.[ds]?vh?\\'" . verilog-mode)
      ;; .emacs or .gnus or .viper following a directory delimiter in
      ;; Unix, MSDOG or VMS syntax.