Correct bat-mode auto-mode-alist.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 18 Jan 2009 22:15:19 +0200
changeset 118 27add777f357
parent 117 e8fec75adcd6
child 119 4e17d15024fb
Correct bat-mode auto-mode-alist.
.emacs-my
--- a/.emacs-my	Sun Jan 18 22:12:56 2009 +0200
+++ b/.emacs-my	Sun Jan 18 22:15:19 2009 +0200
@@ -579,8 +579,9 @@
   (progn
     (add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]$" . bat-mode))
     ;; For DOS init files
-    (add-to-list 'auto-mode-alist '("CONFIG\\." . bat-mode))
-    (add-to-list 'auto-mode-alist '("AUTOEXEC\\." . bat-mode)))
+    (when (equal window-system 'w32)
+      (add-to-list 'auto-mode-alist '("CONFIG\\." . bat-mode))
+      (add-to-list 'auto-mode-alist '("AUTOEXEC\\." . bat-mode))))
 
 ;; ======================================================================
 ;;