comparison lispref/modes.texi @ 77667:6f93cd776ecf

(Auto Major Mode): Document file-start-mode-alist.
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 May 2007 14:51:08 +0000
parents cb061d31cf52
children 2a62a650d2b4
comparison
equal deleted inserted replaced
77666:c1c0e593ebb4 77667:6f93cd776ecf
612 regular expression and @var{function} is a function or @code{nil}. 612 regular expression and @var{function} is a function or @code{nil}.
613 After visiting a file, @code{set-auto-mode} calls @var{function} if 613 After visiting a file, @code{set-auto-mode} calls @var{function} if
614 the text at the beginning of the buffer matches @var{regexp} and 614 the text at the beginning of the buffer matches @var{regexp} and
615 @var{function} is non-@code{nil}; if @var{function} is @code{nil}, 615 @var{function} is non-@code{nil}; if @var{function} is @code{nil},
616 @code{auto-mode-alist} gets to decide the mode. 616 @code{auto-mode-alist} gets to decide the mode.
617 @end defvar
618
619 @defvar file-start-mode-alist
620 This works like @code{magic-mode-alist}, except that it is handled
621 only if @code{auto-mode-alist} does not specify a mode for this file.
617 @end defvar 622 @end defvar
618 623
619 @defvar auto-mode-alist 624 @defvar auto-mode-alist
620 This variable contains an association list of file name patterns 625 This variable contains an association list of file name patterns
621 (regular expressions) and corresponding major mode commands. Usually, 626 (regular expressions) and corresponding major mode commands. Usually,