diff options
| -rw-r--r-- | lispref/modes.texi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi index 749d53f245d..fb71606f925 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -567,13 +567,13 @@ For example, | |||
| 567 | @smallexample | 567 | @smallexample |
| 568 | @group | 568 | @group |
| 569 | (("^/tmp/fol/" . text-mode) | 569 | (("^/tmp/fol/" . text-mode) |
| 570 | ("\\.texinfo$" . texinfo-mode) | 570 | ("\\.texinfo\\'" . texinfo-mode) |
| 571 | ("\\.texi$" . texinfo-mode) | 571 | ("\\.texi\\'" . texinfo-mode) |
| 572 | @end group | 572 | @end group |
| 573 | @group | 573 | @group |
| 574 | ("\\.el$" . emacs-lisp-mode) | 574 | ("\\.el\\'" . emacs-lisp-mode) |
| 575 | ("\\.c$" . c-mode) | 575 | ("\\.c\\'" . c-mode) |
| 576 | ("\\.h$" . c-mode) | 576 | ("\\.h\\'" . c-mode) |
| 577 | @dots{}) | 577 | @dots{}) |
| 578 | @end group | 578 | @end group |
| 579 | @end smallexample | 579 | @end smallexample |
| @@ -602,11 +602,11 @@ Here is an example of how to prepend several pattern pairs to | |||
| 602 | (setq auto-mode-alist | 602 | (setq auto-mode-alist |
| 603 | (append | 603 | (append |
| 604 | ;; @r{File name starts with a dot.} | 604 | ;; @r{File name starts with a dot.} |
| 605 | '(("/\\.[^/]*$" . fundamental-mode) | 605 | '(("/\\.[^/]*\\'" . fundamental-mode) |
| 606 | ;; @r{File name has no dot.} | 606 | ;; @r{File name has no dot.} |
| 607 | ("[^\\./]*$" . fundamental-mode) | 607 | ("[^\\./]*\\'" . fundamental-mode) |
| 608 | ;; @r{File name ends in @samp{.C}.} | 608 | ;; @r{File name ends in @samp{.C}.} |
| 609 | ("\\.C$" . c++-mode)) | 609 | ("\\.C\\'" . c++-mode)) |
| 610 | auto-mode-alist)) | 610 | auto-mode-alist)) |
| 611 | @end group | 611 | @end group |
| 612 | @end smallexample | 612 | @end smallexample |