summaryrefslogtreecommitdiff
path: root/doc/src/sgml/sources.sgml
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-10-09 18:46:00 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-10-09 18:46:00 +0000
commitffb8f73890a9998a7737434aefe190926369ee80 (patch)
treea209d81342cee8b810917ce51bb90c436d0ce52a /doc/src/sgml/sources.sgml
parent2f1c24cb1cec952a3a59a9b3a3500fa0e34e474f (diff)
downloadpostgresql-ffb8f73890a9998a7737434aefe190926369ee80.tar.gz
Bunch of copy fitting and style sheet tweakage to get decent looking print
output (from pdfjadetex). Also updated instructions to install documentation processing toolchain.
Diffstat (limited to 'doc/src/sgml/sources.sgml')
-rw-r--r--doc/src/sgml/sources.sgml26
1 files changed, 15 insertions, 11 deletions
diff --git a/doc/src/sgml/sources.sgml b/doc/src/sgml/sources.sgml
index 1ab1e0b4cb..6df745f7b4 100644
--- a/doc/src/sgml/sources.sgml
+++ b/doc/src/sgml/sources.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/sources.sgml,v 2.3 2000/09/29 20:21:34 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/sources.sgml,v 2.4 2001/10/09 18:46:00 petere Exp $
-->
<chapter id="source">
@@ -18,10 +18,14 @@ $Header: /cvsroot/pgsql/doc/src/sgml/sources.sgml,v 2.3 2000/09/29 20:21:34 pete
to your <filename>~/.emacs</filename>
initialization file:
- <programlisting>
+<programlisting>
;; check for files with a path containing "postgres" or "pgsql"
-(setq auto-mode-alist (cons '("\\(postgres\\|pgsql\\).*\\.[ch]\\'" . pgsql-c-mode) auto-mode-alist))
-(setq auto-mode-alist (cons '("\\(postgres\\|pgsql\\).*\\.cc\\'" . pgsql-c-mode) auto-mode-alist))
+(setq auto-mode-alist
+ (cons '("\\(postgres\\|pgsql\\).*\\.[ch]\\'" . pgsql-c-mode)
+ auto-mode-alist))
+(setq auto-mode-alist
+ (cons '("\\(postgres\\|pgsql\\).*\\.cc\\'" . pgsql-c-mode)
+ auto-mode-alist))
(defun pgsql-c-mode ()
;; sets up formatting for Postgres C code
@@ -31,7 +35,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/sources.sgml,v 2.3 2000/09/29 20:21:34 pete
(c-set-style "bsd") ; set c-basic-offset to 4, plus other stuff
(c-set-offset 'case-label '+) ; tweak case indent to match PG custom
(setq indent-tabs-mode t)) ; make sure we keep tabs when indenting
- </programlisting>
+</programlisting>
</para>
<para>
@@ -39,25 +43,25 @@ $Header: /cvsroot/pgsql/doc/src/sgml/sources.sgml,v 2.3 2000/09/29 20:21:34 pete
<filename>~/.vimrc</filename> or equivalent file should contain
the following:
- <programlisting>
+<programlisting>
set tabstop=4
- </programlisting>
+</programlisting>
or equivalently from within vi, try
- <programlisting>
+<programlisting>
:set ts=4
- </programlisting>
+</programlisting>
</para>
<para>
The text browsing tools <application>more</application> and
<application>less</application> can be invoked as
- <programlisting>
+<programlisting>
more -x4
less -x4
- </programlisting>
+</programlisting>
</para>
</sect1>
</chapter>