diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-08-10 06:38:39 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-08-10 06:38:39 +0000 |
commit | d548181a218d01f1c9761e16d105b8858e65b222 (patch) | |
tree | a099d26f65e62ea061afd0f6630b4397dc40654c /lispref/modes.texi | |
parent | 0c5fbe8e5fe937908994c577d24736f6cf531aa8 (diff) | |
download | emacs-d548181a218d01f1c9761e16d105b8858e65b222.tar.gz |
*** empty log message ***
Diffstat (limited to 'lispref/modes.texi')
-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, @smallexample @group (("^/tmp/fol/" . text-mode) - ("\\.texinfo$" . texinfo-mode) - ("\\.texi$" . texinfo-mode) + ("\\.texinfo\\'" . texinfo-mode) + ("\\.texi\\'" . texinfo-mode) @end group @group - ("\\.el$" . emacs-lisp-mode) - ("\\.c$" . c-mode) - ("\\.h$" . c-mode) + ("\\.el\\'" . emacs-lisp-mode) + ("\\.c\\'" . c-mode) + ("\\.h\\'" . c-mode) @dots{}) @end group @end smallexample @@ -602,11 +602,11 @@ Here is an example of how to prepend several pattern pairs to (setq auto-mode-alist (append ;; @r{File name starts with a dot.} - '(("/\\.[^/]*$" . fundamental-mode) + '(("/\\.[^/]*\\'" . fundamental-mode) ;; @r{File name has no dot.} - ("[^\\./]*$" . fundamental-mode) + ("[^\\./]*\\'" . fundamental-mode) ;; @r{File name ends in @samp{.C}.} - ("\\.C$" . c++-mode)) + ("\\.C\\'" . c++-mode)) auto-mode-alist)) @end group @end smallexample |