# HG changeset patch # User Oleksandr Gavenko # Date 1258982642 -7200 # Node ID 22dc8759aafc10984b5a2cb35d42c5dbde3795db # Parent 2abcea5b91db769bb1f02aae8c50bdde52440ae0 Correct auto-mode-alist for win batch file mode. diff -r 2abcea5b91db -r 22dc8759aafc .emacs-my --- a/.emacs-my Mon Nov 16 17:53:04 2009 +0200 +++ b/.emacs-my Mon Nov 23 15:24:02 2009 +0200 @@ -605,11 +605,9 @@ (when (provide 'bat-mode) (progn - (add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]$" . bat-mode)) - ;; For DOS init files - (when (equal window-system 'w32) - (add-to-list 'auto-mode-alist '("CONFIG\\." . bat-mode)) - (add-to-list 'auto-mode-alist '("AUTOEXEC\\." . bat-mode))))) + (add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]\\'" . bat-mode)) + (add-to-list 'auto-mode-alist '("\\.[cC][mM][dD]\\'" . bat-mode)) + )) ;; ====================================================================== ;;