Mercurial > emacs
comparison lispref/modes.texi @ 52197:a0b65ecec014
*** empty log message ***
author | John Paul Wallington <jpw@pobox.com> |
---|---|
date | Thu, 14 Aug 2003 05:43:15 +0000 |
parents | 41f0343d328b |
children | 695cf19ef79e |
comparison
equal
deleted
inserted
replaced
52196:d981f8624faa | 52197:a0b65ecec014 |
---|---|
2 @c This is part of the GNU Emacs Lisp Reference Manual. | 2 @c This is part of the GNU Emacs Lisp Reference Manual. |
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003 | 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003 |
4 @c Free Software Foundation, Inc. | 4 @c Free Software Foundation, Inc. |
5 @c See the file elisp.texi for copying conditions. | 5 @c See the file elisp.texi for copying conditions. |
6 @setfilename ../info/modes | 6 @setfilename ../info/modes |
7 @node Modes, Documentation, Keymaps, Top | 7 @node Modes, Documentation, Keymaps, Top |
8 @chapter Major and Minor Modes | 8 @chapter Major and Minor Modes |
9 @cindex mode | 9 @cindex mode |
10 | 10 |
11 A @dfn{mode} is a set of definitions that customize Emacs and can be | 11 A @dfn{mode} is a set of definitions that customize Emacs and can be |
12 turned on and off while you edit. There are two varieties of modes: | 12 turned on and off while you edit. There are two varieties of modes: |
1159 * Mode Line Data:: The data structure that controls the mode line. | 1159 * Mode Line Data:: The data structure that controls the mode line. |
1160 * Mode Line Variables:: Variables used in that data structure. | 1160 * Mode Line Variables:: Variables used in that data structure. |
1161 * %-Constructs:: Putting information into a mode line. | 1161 * %-Constructs:: Putting information into a mode line. |
1162 * Properties in Mode:: Using text properties in the mode line. | 1162 * Properties in Mode:: Using text properties in the mode line. |
1163 * Header Lines:: Like a mode line, but at the top. | 1163 * Header Lines:: Like a mode line, but at the top. |
1164 * Emulating Mode Line:: Formating text as the mode line would. | 1164 * Emulating Mode Line:: Formatting text as the mode line would. |
1165 @end menu | 1165 @end menu |
1166 | 1166 |
1167 @node Mode Line Data | 1167 @node Mode Line Data |
1168 @subsection The Data Structure of the Mode Line | 1168 @subsection The Data Structure of the Mode Line |
1169 @cindex mode line construct | 1169 @cindex mode line construct |
1610 | 1610 |
1611 It is normally @code{nil}, so that ordinary buffers have no header line. | 1611 It is normally @code{nil}, so that ordinary buffers have no header line. |
1612 @end defvar | 1612 @end defvar |
1613 | 1613 |
1614 @node Emulating Mode Line | 1614 @node Emulating Mode Line |
1615 @subsection Emulating Mode Line Formating | 1615 @subsection Emulating Mode Line Formatting |
1616 | 1616 |
1617 You can use the function @code{format-mode-line} to compute | 1617 You can use the function @code{format-mode-line} to compute |
1618 the text that would appear in a mode line or header line | 1618 the text that would appear in a mode line or header line |
1619 based on certain mode line specification. | 1619 based on certain mode line specification. |
1620 | 1620 |