From 322d65c1a64b2e28b20bf79fb247d5c5e549ce4a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 10 Jun 2000 01:55:37 +0000 Subject: UPdate developers faq --- doc/src/FAQ_DEV.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'doc/src') diff --git a/doc/src/FAQ_DEV.html b/doc/src/FAQ_DEV.html index 99c2d6c0673..440c3f8c435 100644 --- a/doc/src/FAQ_DEV.html +++ b/doc/src/FAQ_DEV.html @@ -7,7 +7,7 @@ Developer's Frequently Asked Questions (FAQ) for PostgreSQL
-Last updated: Fri Dec 24 11:43:42 EST 1999 +Last updated: Fri Jun 9 21:54:54 EDT 2000
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
@@ -113,15 +113,14 @@ tabs as four spaces:
M-x set-variable tab-width
or
; Cmd to set tab stops &etc for working with PostgreSQL code
- (defun pgsql-mode ()
- "Set PostgreSQL C indenting conventions in current buffer."
- (interactive)
- (c-mode) ; necessary to make c-set-offset local!
- (setq tab-width 4) ; already buffer-local
- ; (setq comment-column 48) ; already buffer-local
- (c-set-style "bsd")
- (c-set-offset 'case-label '+)
- )
+ (c-add-style "pgsql"
+ '("bsd"
+ (indent-tabs-mode . t)
+ (c-basic-offset . 4)
+ (tab-width . 4)
+ (c-offsets-alist .
+ ((case-label . +))))
+ t) ; t = set this mode on
and add this to your autoload list (modify file path in macro):
--
cgit v1.2.3