diff options
author | Bruce Momjian | 2000-06-09 01:44:34 +0000 |
---|---|---|
committer | Bruce Momjian | 2000-06-09 01:44:34 +0000 |
commit | 8c1d09d591c446aa777668497abd91a60c26dc97 (patch) | |
tree | f8d534926aefb0f366da2a916b812b29e50fcc63 /doc/FAQ_DEV | |
parent | fb070464c1907bfea7c4f15fddf6c6c6f034042c (diff) |
Inheritance overhaul by Chris Bitmead <chris@bitmead.com>
Diffstat (limited to 'doc/FAQ_DEV')
-rw-r--r-- | doc/FAQ_DEV | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/doc/FAQ_DEV b/doc/FAQ_DEV index 22ba1db46ea..e55d2c5ea6b 100644 --- a/doc/FAQ_DEV +++ b/doc/FAQ_DEV @@ -90,16 +90,14 @@ s 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): |