Automated merge with file:///cygdrive/e/srv/hg/dot-emacs
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 09 Nov 2010 22:53:33 +0200
changeset 512 416623895658
parent 510 1779f42a2b2b (diff)
parent 511 d1889d3244be (current diff)
child 513 b12a3b6147f5
Automated merge with file:///cygdrive/e/srv/hg/dot-emacs
.emacs-my
--- a/.emacs-my	Tue Nov 09 21:49:55 2010 +0200
+++ b/.emacs-my	Tue Nov 09 22:53:33 2010 +0200
@@ -975,8 +975,6 @@
 
 (add-to-list 'auto-mode-alist '("\\.cu$" . c-mode))
 
-(add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
-
 (defun my-c++-header-file-p ()
   "Return non-nil, if in a C++ header."
   (and (string-match "\\.h$"
@@ -1224,6 +1222,13 @@
             ))
     ))
 
+;;; ----------------------------------------------------------------
+;;; javascript, js.
+
+(if (>= emacs-major-version 23)
+    (add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
+  (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
+  )
 
 ;;; ----------------------------------------------------------------
 ;;; bat file, batch.