X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/80ccc95f36342b5c840c0ce9cb4196094230668d..e7176868e06466fc6200fa4176c680ec88496020:/man/major.texi diff --git a/man/major.texi b/man/major.texi index 28f0ff0f32..d1f3fbaeeb 100644 --- a/man/major.texi +++ b/man/major.texi @@ -1,5 +1,6 @@ @c This is part of the Emacs manual. -@c Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 2000 Free Software Foundation, Inc. +@c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2000, 2001, +@c 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @c See file emacs.texi for copying conditions. @node Major Modes, Indentation, International, Top @chapter Major Modes @@ -64,10 +65,10 @@ because most lines in a program are usually indented most of the time Emacs determines which mode to use based on the file name or on special text in the file. - Explicit selection of a new major mode is done with a @kbd{M-x} command. -From the name of a major mode, add @code{-mode} to get the name of a -command to select that mode. Thus, you can enter Lisp mode by executing -@kbd{M-x lisp-mode}. + To explicitly select a new major, you use an @kbd{M-x} command. +Take the name of a major mode and add @code{-mode} to get the name of +the command to select that mode. Thus, you can enter Lisp mode by +executing @kbd{M-x lisp-mode}. @vindex auto-mode-alist When you visit a file, Emacs usually chooses the right major mode based @@ -176,7 +177,8 @@ mode is taken from the previously current buffer. mode Emacs would choose automatically: use the command @kbd{M-x normal-mode} to do this. This is the same function that @code{find-file} calls to choose the major mode. It also processes -the file's local variables list (if any). +the file's @samp{-*-} line or local variables list (if any). +@xref{File Variables}. @vindex change-major-mode-with-file-name The commands @kbd{C-x C-w} and @code{set-visited-file-name} change to