From ba2d8894872f43b53d3f1dd10e2e744e14e610ad Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 14 Aug 2009 23:40:20 +0000 Subject: [PATCH] * files.el (auto-mode-alist): Use js-mode for .js files. --- lisp/ChangeLog | 2 ++ lisp/files.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1e28cf025d9..05b94dff1af 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2009-08-14 Chong Yidong + * files.el (auto-mode-alist): Use js-mode for .js files. + * progmodes/js2-mode.el: File removed. * Makefile.in (ELCFILES): Add js.el, and remove js2-mode.el. diff --git a/lisp/files.el b/lisp/files.el index 5f256a016ca..9ca5761bae6 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2221,7 +2221,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\)\\'" . archive-mode) ("\\.x[ms]l\\'" . xml-mode) ("\\.dtd\\'" . sgml-mode) ("\\.ds\\(ss\\)?l\\'" . dsssl-mode) - ("\\.js\\'" . java-mode) ; javascript-mode would be better + ("\\.js\\'" . js-mode) ; javascript-mode would be better ("\\.[ds]?v\\'" . verilog-mode) ;; .emacs or .gnus or .viper following a directory delimiter in ;; Unix, MSDOG or VMS syntax. -- 2.39.2