From 6453a10ed837bfbb36508dfeb18e8d8473236797 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 23 Jun 2006 12:41:15 +0000 Subject: [PATCH] (bat-generic-mode): Support .cmd files. --- lisp/ChangeLog | 2 ++ lisp/generic-x.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d85bd9d876..1508381ce4c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2006-06-23 Eli Zaretskii + * generic-x.el (bat-generic-mode): Support .cmd files. + * dos-w32.el (top level): Use find-file-not-found-functions instead of the obsolete find-file-not-found-hooks. diff --git a/lisp/generic-x.el b/lisp/generic-x.el index 55c4e482803..609d076d8a2 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el @@ -512,10 +512,11 @@ like an INI file. You can add this hook to `find-file-hook'." (1 font-lock-builtin-face) (2 font-lock-variable-name-face t t)))) '("\\.[bB][aA][tT]\\'" + "\\.[cC][mM][dD]\\'" "\\`[cC][oO][nN][fF][iI][gG]\\." "\\`[aA][uU][tT][oO][eE][xX][eE][cC]\\.") '(generic-bat-mode-setup-function) - "Generic mode for MS-Windows BAT files.") + "Generic mode for MS-Windows batch files.") (defvar bat-generic-mode-syntax-table nil "Syntax table in use in `bat-generic-mode' buffers.") -- 2.39.2