From 79b0da6e7c7f2dba1b07d80e8fb45de2c376ca53 Mon Sep 17 00:00:00 2001
From: Bruce Momjian Last updated: Fri Feb 14 08:59:10 EST 2003 Last updated: Mon Jun 2 00:34:39 EDT 2003 Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)Developer's Frequently Asked Questions (FAQ) for
PostgreSQL
-
@@ -281,22 +281,29 @@
less -x4
emacs:
M-x set-variable tab-width
+
or
- ; Cmd to set tab stops & indenting for working with PostgreSQL code
- (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
+
+ (c-add-style "pgsql"
+ '("bsd"
+ (indent-tabs-mode . t)
+ (c-basic-offset . 4)
+ (tab-width . 4)
+ (c-offsets-alist .
+ ((case-label . +)))
+ )
+ nil ) ; t = set this style, nil = don't
+
+ (defun pgsql-c-mode ()
+ (c-mode)
+ (c-set-style "pgsql")
+ )
and add this to your autoload list (modify file path in macro):
- (setq auto-mode-alist
- (cons '("\\`/usr/local/src/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
- auto-mode-alist))
+ (setq auto-mode-alist
+ (cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
+ auto-mode-alist))
or
/*
* Local variables:
@@ -605,7 +612,9 @@
href="http://webstore.ansi.org/ansidocstore/default.asp">
http://webstore.ansi.org/ansidocstore/default.asp. The main
standards documents are ANSI X3.135-1992 for SQL92 and ANSI/ISO/IEC
- 9075-2-1999 for SQL99.
A summary of these standards is at -- cgit v1.2.3