Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
24675e99
Commit
24675e99
authored
Aug 10, 1994
by
Richard M. Stallman
Browse files
*** empty log message ***
parent
298a7c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lispref/modes.texi
lispref/modes.texi
+8
-8
No files found.
lispref/modes.texi
View file @
24675e99
...
@@ -567,13 +567,13 @@ For example,
...
@@ -567,13 +567,13 @@ For example,
@smallexample
@smallexample
@group
@group
(("^/tmp/fol/" . text-mode)
(("^/tmp/fol/" . text-mode)
("\\.texinfo
$
" . texinfo-mode)
("\\.texinfo
\\'
" . texinfo-mode)
("\\.texi
$
" . texinfo-mode)
("\\.texi
\\'
" . texinfo-mode)
@end group
@end group
@group
@group
("\\.el
$
" . emacs-lisp-mode)
("\\.el
\\'
" . emacs-lisp-mode)
("\\.c
$
" . c-mode)
("\\.c
\\'
" . c-mode)
("\\.h
$
" . c-mode)
("\\.h
\\'
" . c-mode)
@dots{})
@dots{})
@end group
@end group
@end smallexample
@end smallexample
...
@@ -602,11 +602,11 @@ Here is an example of how to prepend several pattern pairs to
...
@@ -602,11 +602,11 @@ Here is an example of how to prepend several pattern pairs to
(setq auto-mode-alist
(setq auto-mode-alist
(append
(append
;; @r{File name starts with a dot.}
;; @r{File name starts with a dot.}
'(("/\\.[^/]*
$
" . fundamental-mode)
'(("/\\.[^/]*
\\'
" . fundamental-mode)
;; @r{File name has no dot.}
;; @r{File name has no dot.}
("[^\\./]*
$
" . fundamental-mode)
("[^\\./]*
\\'
" . fundamental-mode)
;; @r{File name ends in @samp{.C}.}
;; @r{File name ends in @samp{.C}.}
("\\.C
$
" . c++-mode))
("\\.C
\\'
" . c++-mode))
auto-mode-alist))
auto-mode-alist))
@end group
@end group
@end smallexample
@end smallexample
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment