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
116987ba
Commit
116987ba
authored
Oct 19, 1994
by
Richard M. Stallman
Browse files
(auto-mode-alist): Doc fix.
parent
625ad89f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
lisp/files.el
lisp/files.el
+8
-5
No files found.
lisp/files.el
View file @
116987ba
...
...
@@ -880,11 +880,14 @@ run `normal-mode' explicitly."
(
"\\.ml\\'"
.
lisp-mode
)))
"\
Alist
of
filename
patterns
vs
corresponding
major
mode
functions.
Each
element
looks
like
(
REGEXP
.
FUNCTION
)
or
(
REGEXP
FUNCTION
)
.
Visiting
a
file
whose
name
matches
REGEXP
causes
FUNCTION
to
be
called.
If
the
element
has
the
form
(
REGEXP
FUNCTION
)
,
then
after
calling
FUNCTION,
we
delete
the
suffix
that
matched
REGEXP
and
search
the
list
again
for
another
match.
")
Each
element
looks
like
(
REGEXP
.
FUNCTION
)
or
(
REGEXP
FUNCTION
NON-NIL
)
.
\(NON-NIL
stands
for
anything
that
is
not
nil
; the value does not matter.)
Visiting
a
file
whose
name
matches
REGEXP
specifies
FUNCTION
as
the
mode
function
to
use.
FUNCTION
will
be
called,
unless
it
is
nil.
If
the
element
has
the
form
(
REGEXP
FUNCTION
NON-NIL
)
,
then
after
calling
FUNCTION
(
if
it
's
not
nil
)
,
we
delete
the
suffix
that
matched
REGEXP
and
search
the
list
again
for
another
match.
")
(defconst interpreter-mode-alist
'(("
perl
" . perl-mode)
...
...
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