comparison lisp/files.el @ 34009:8091ba37be87

(auto-mode-alist): Add an entry for antlr-mode.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 29 Nov 2000 16:48:40 +0000
parents af0f3f3533e8
children da2a5d1550b7
comparison
equal deleted inserted replaced
34008:8702e88a1669 34009:8091ba37be87
1456 ;; or .#<file>.<rev>-<rev> or VC's <file>.~<rev>~ 1456 ;; or .#<file>.<rev>-<rev> or VC's <file>.~<rev>~
1457 ("\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" nil t) 1457 ("\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" nil t)
1458 ;;; The following should come after the ChangeLog pattern 1458 ;;; The following should come after the ChangeLog pattern
1459 ;;; for the sake of ChangeLog.1, etc. 1459 ;;; for the sake of ChangeLog.1, etc.
1460 ;;; and after the .scm.[0-9] and CVS' <file>.<rev> patterns too. 1460 ;;; and after the .scm.[0-9] and CVS' <file>.<rev> patterns too.
1461 ("\\.[12345678]\\'" . nroff-mode))) 1461 ("\\.[12345678]\\'" . nroff-mode)
1462 ("\\.g\\'" . antlr-mode)))
1462 "Alist of filename patterns vs corresponding major mode functions. 1463 "Alist of filename patterns vs corresponding major mode functions.
1463 Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). 1464 Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).
1464 \(NON-NIL stands for anything that is not nil; the value does not matter.) 1465 \(NON-NIL stands for anything that is not nil; the value does not matter.)
1465 Visiting a file whose name matches REGEXP specifies FUNCTION as the 1466 Visiting a file whose name matches REGEXP specifies FUNCTION as the
1466 mode function to use. FUNCTION will be called, unless it is nil. 1467 mode function to use. FUNCTION will be called, unless it is nil.