comparison lispref/modes.texi @ 64974:94eca817f666

(Auto Major Mode): interpreter-mode-alist is not a regexp.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Aug 2005 02:06:09 +0000
parents e836425ee789
children 67ae1374db5d
comparison
equal deleted inserted replaced
64973:c3eb48b914e3 64974:94eca817f666
867 This variable specifies major modes to use for scripts that specify a 867 This variable specifies major modes to use for scripts that specify a
868 command interpreter in a @samp{#!} line. Its value is an alist with 868 command interpreter in a @samp{#!} line. Its value is an alist with
869 elements of the form @code{(@var{interpreter} . @var{mode})}; for 869 elements of the form @code{(@var{interpreter} . @var{mode})}; for
870 example, @code{("perl" . perl-mode)} is one element present by 870 example, @code{("perl" . perl-mode)} is one element present by
871 default. The element says to use mode @var{mode} if the file 871 default. The element says to use mode @var{mode} if the file
872 specifies an interpreter which matches @var{interpreter}. The value 872 specifies an interpreter which matches @var{interpreter}.
873 of @var{interpreter} is actually a regular expression. @xref{Regular
874 Expressions}.
875 @end defvar 873 @end defvar
876 874
877 @defvar magic-mode-alist 875 @defvar magic-mode-alist
878 This variable's value is an alist with elements of the form 876 This variable's value is an alist with elements of the form
879 @code{(@var{regexp} . @var{function})}, where @var{regexp} is a 877 @code{(@var{regexp} . @var{function})}, where @var{regexp} is a