63 |
* Text Mode:: The major modes for editing text files. |
* Text Mode:: The major modes for editing text files. |
64 |
* Outline Mode:: Editing outlines. |
* Outline Mode:: Editing outlines. |
65 |
* TeX Mode:: Editing input to the formatter TeX. |
* TeX Mode:: Editing input to the formatter TeX. |
66 |
|
* HTML Mode:: Editing HTML files. |
67 |
* Nroff Mode:: Editing input to the formatter nroff. |
* Nroff Mode:: Editing input to the formatter nroff. |
68 |
* Formatted Text:: Editing formatted text directly in WYSIWYG fashion. |
* Formatted Text:: Editing formatted text directly in WYSIWYG fashion. |
69 |
@end menu |
@end menu |
564 |
period. Set the variable @code{sentence-end-without-period} to |
period. Set the variable @code{sentence-end-without-period} to |
565 |
@code{t} to tell the sentence commands that a period is not necessary. |
@code{t} to tell the sentence commands that a period is not necessary. |
566 |
|
|
567 |
|
@vindex fill-nobreak-predicate |
568 |
|
The variable @code{fill-nobreak-predicate} specifies additional |
569 |
|
conditions for where line-breaking is allowed. Its value is either |
570 |
|
@code{nil} or a Lisp function; the function is called with no |
571 |
|
arguments, and if it returns a non-@code{nil} value, then point is not |
572 |
|
a good place to break the line. The standard functions you can use |
573 |
|
@code{fill-single-word-nobreak-p} (don't break after the first word of |
574 |
|
a sentence or before the last) and @code{fill-french-nobreak-p} (don't |
575 |
|
break after @samp{(} or before @samp{)}, @samp{:} or @samp{?}). |
576 |
|
|
577 |
@node Fill Prefix |
@node Fill Prefix |
578 |
@subsection The Fill Prefix |
@subsection The Fill Prefix |
579 |
|
|
1652 |
For managing all kinds of references for La@TeX{}, you can use |
For managing all kinds of references for La@TeX{}, you can use |
1653 |
Ref@TeX{}. @xref{Top, , RefTeX, reftex}. |
Ref@TeX{}. @xref{Top, , RefTeX, reftex}. |
1654 |
|
|
1655 |
|
@node HTML Mode |
1656 |
|
@section SGML and HTML Modes |
1657 |
|
|
1658 |
|
The major modes for SGML and HTML include indentation support and |
1659 |
|
commands to operate on tags. This section describes the special |
1660 |
|
commands of these modes. (HTML mode is a slightly customized variant |
1661 |
|
of SGML mode.) |
1662 |
|
|
1663 |
|
@table @kbd |
1664 |
|
@item C-c C-n |
1665 |
|
@kindex C-c C-n @r{(SGML mode)} |
1666 |
|
@findex sgml-name-char |
1667 |
|
Interactively specify a special character and insert the SGML |
1668 |
|
@samp{&}-command for that character. |
1669 |
|
|
1670 |
|
@item C-c C-t |
1671 |
|
@kindex C-c C-t @r{(SGML mode)} |
1672 |
|
@findex sgml-tag |
1673 |
|
Interactively specify a tag and its attributes (@code{sgml-tag}). |
1674 |
|
This command asks you for a tag name and for the attribute values, |
1675 |
|
then inserts both the opening tag and the closing tag, leaving point |
1676 |
|
between them. |
1677 |
|
|
1678 |
|
With a prefix argument @var{n}, the command puts the tag around the |
1679 |
|
@var{n} words already present in the buffer after point. With |
1680 |
|
@minus{}1 as argument, it puts the tag around the region. (In |
1681 |
|
Transient Mark mode, it does this whenever a region is active.) |
1682 |
|
|
1683 |
|
@item C-c C-a |
1684 |
|
@kindex C-c C-a @r{(SGML mode)} |
1685 |
|
@findex sgml-attributes |
1686 |
|
Interactively insert attribute values for the current tag |
1687 |
|
(@code{sgml-attributes}). |
1688 |
|
|
1689 |
|
@item C-c C-f |
1690 |
|
@kindex C-c C-f @r{(SGML mode)} |
1691 |
|
@findex sgml-skip-tag-forward |
1692 |
|
Skip across a balanced tag group (which extends from an opening tag |
1693 |
|
through its corresponding closing tag) (@code{sgml-skip-tag-forward}). |
1694 |
|
A numeric argument acts as a repeat count. |
1695 |
|
|
1696 |
|
@item C-c C-b |
1697 |
|
@kindex C-c C-b @r{(SGML mode)} |
1698 |
|
@findex sgml-skip-tag-backward |
1699 |
|
Skip backward across a balanced tag group (which extends from an |
1700 |
|
opening tag through its corresponding closing tag) |
1701 |
|
(@code{sgml-skip-tag-forward}). A numeric argument acts as a repeat |
1702 |
|
count. |
1703 |
|
|
1704 |
|
@item C-c C-d |
1705 |
|
@kindex C-c C-d @r{(SGML mode)} |
1706 |
|
@findex sgml-delete-tag |
1707 |
|
Delete the tag at or after point, and delete the matching tag too |
1708 |
|
(@code{sgml-delete-tag}). If the tag at or after point is an opening |
1709 |
|
tag, delete the closing tag too; if it is a closing tag, delete the |
1710 |
|
opening tag too. |
1711 |
|
|
1712 |
|
@item C-c ? @var{tag} @key{RET} |
1713 |
|
@kindex C-c ? @r{(SGML mode)} |
1714 |
|
@findex sgml-tag-help |
1715 |
|
Display a description of the meaning of tag @var{tag} |
1716 |
|
(@code{sgml-tag-help}). If the argument @var{tag} is empty, describe |
1717 |
|
the tag at point. |
1718 |
|
|
1719 |
|
@item C-c / |
1720 |
|
@kindex C-c / @r{(SGML mode)} |
1721 |
|
@findex sgml-close-tag |
1722 |
|
Insert a close tag for the innermost unterminated tag (@code{sgml-close-tag}). |
1723 |
|
|
1724 |
|
@item C-c 8 |
1725 |
|
@kindex C-c 8 @r{(SGML mode)} |
1726 |
|
@findex sgml-name-8bit-mode |
1727 |
|
Toggle a minor mode in which Latin-1 characters insert the |
1728 |
|
corresponding SGML commands that stand for them, instead of the |
1729 |
|
characters themselves (@code{sgml-name-8bit-mode}). |
1730 |
|
|
1731 |
|
@item C-c C-v |
1732 |
|
@kindex C-c C-v @r{(SGML mode)} |
1733 |
|
@findex sgml-validate |
1734 |
|
Run a shell command (which you must specify) to validate the current |
1735 |
|
buffer as SGML (@code{sgml-validate}). |
1736 |
|
@end table |
1737 |
|
|
1738 |
|
@vindex sgml-xml-mode |
1739 |
|
SGML mode and HTML mode support XML also. In XML, every opening tag |
1740 |
|
must have an explicit closing tag. When @code{sgml-xml-mode} is |
1741 |
|
non-@code{nil}, SGML mode (and HTML mode) always insert explicit |
1742 |
|
closing tags. When you visit a file, these modes determine from the |
1743 |
|
file contents whether it is XML or not, and set @code{sgml-xml-mode} |
1744 |
|
accordingly, so that they does the right thing for the file in either |
1745 |
|
case. |
1746 |
|
|
1747 |
@node Nroff Mode |
@node Nroff Mode |
1748 |
@section Nroff Mode |
@section Nroff Mode |
1749 |
|
|