Add a tip about ``C-c /'' and a new way to add local stuff to the

psgml-mode-hook that works better with the current version of
editors/psgml in GNU Emacs 21.3

Submitted by:	Leonidas Tsampros <ltsampros@upnet.gr>
This commit is contained in:
Giorgos Keramidas 2005-09-24 23:15:42 +00:00
parent d901c3c2f7
commit 33bcff02e3
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=25745

View file

@ -130,6 +130,15 @@
as you go.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>C-c /</command></term>
<listitem>
<para>Runs <literal>sgml-insert-end-tag</literal>. Inserts the
end tag for the current open element.</para>
</listitem>
</varlistentry>
</variablelist>
<para>Doubtless there are other useful functions of this mode, but those are
@ -140,13 +149,16 @@
and column width for working with the Documentation Project.</para>
<programlisting>
(setq sgml-mode-hook
'(lambda ()
(setq fill-column 70
indent-tabs-mode nil
next-line-add-newlines nil
standard-indent 2)
(auto-fill-mode t)))
(defun local-sgml-mode-hook
(setq fill-column 70
indent-tabs-mode nil
next-line-add-newlines nil
standard-indent 4
sgml-indent-data t)
(auto-fill-mode t)
(setq sgml-catalog-files '("/usr/local/share/sgml/catalog")))
(add-hook 'psgml-mode-hook
'(lambda () (local-psgml-mode-hook)))
</programlisting>
</chapter>