13
13
< H1 > Developer's Frequently Asked Questions (FAQ) for
14
14
PostgreSQL</ H1 >
15
15
16
- < P > Last updated: Wed Sep 6 18:02:57 EDT 2006</ P >
16
+ < P > Last updated: Wed Sep 6 20:08:24 EDT 2006</ P >
17
17
18
18
< P > Current maintainer: Bruce Momjian (< A href =
19
19
"mailto:bruce@momjian.us "> bruce@momjian.us</ A > )< BR >
@@ -357,9 +357,9 @@ <H3 id="item1.9">1.9) What tools are available for
357
357
can be applied to the distribution. This produces context diffs,
358
358
which is our preferred format.</ P >
359
359
360
- < P > Our standard format is to indent each code level with one tab,
361
- where each tab is four spaces. You will need to set your editor to
362
- display tabs as four spaces:< BR >
360
+ < P > Our standard format < I > BSD </ I > style, with each level of code indented
361
+ one tab, where each tab is four spaces. You will need to set your editor
362
+ or file viewer to display tabs as four spaces:< BR >
363
363
</ P >
364
364
< PRE >
365
365
vi in ~/.exrc:
@@ -369,40 +369,11 @@ <H3 id="item1.9">1.9) What tools are available for
369
369
more -x4
370
370
less:
371
371
less -x4
372
- emacs:
373
- M-x set-variable tab-width
374
-
375
- or
376
-
377
- (c-add-style "pgsql"
378
- '("bsd"
379
- (indent-tabs-mode . t)
380
- (c-basic-offset . 4)
381
- (tab-width . 4)
382
- (c-offsets-alist .
383
- ((case-label . +)))
384
- )
385
- nil ) ; t = set this style, nil = don't
386
-
387
- (defun pgsql-c-mode ()
388
- (c-mode)
389
- (c-set-style "pgsql")
390
- )
391
-
392
- and add this to your autoload list (modify file path in macro):
393
-
394
- (setq auto-mode-alist
395
- (cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
396
- auto-mode-alist))
397
- or
398
- /*
399
- * Local variables:
400
- * tab-width: 4
401
- * c-indent-level: 4
402
- * c-basic-offset: 4
403
- * End:
404
- */
405
372
</ PRE >
373
+ < P > The < I > tools</ I > directory of the latest sources contains sample
374
+ settings that can be used with the < I > emacs, xemacs</ I > and < I > vim</ I >
375
+ editors, that assist in keeping to PostgreSQL coding standards.
376
+ </ P >
406
377
< BR >
407
378
< I > pgindent</ I > will the format code by specifying flags to your
408
379
operating system's utility < I > indent.</ I > This < A href =
0 commit comments