From 33bcff02e3a2a4890d19cc5bd5aee81bf484bc85 Mon Sep 17 00:00:00 2001 From: Giorgos Keramidas <keramida@FreeBSD.org> Date: Sat, 24 Sep 2005 23:15:42 +0000 Subject: [PATCH] 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> --- .../books/fdp-primer/psgml-mode/chapter.sgml | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/en_US.ISO8859-1/books/fdp-primer/psgml-mode/chapter.sgml b/en_US.ISO8859-1/books/fdp-primer/psgml-mode/chapter.sgml index d912db05c2..afbb1c9175 100644 --- a/en_US.ISO8859-1/books/fdp-primer/psgml-mode/chapter.sgml +++ b/en_US.ISO8859-1/books/fdp-primer/psgml-mode/chapter.sgml @@ -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>