From 8c1d09d591c446aa777668497abd91a60c26dc97 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 9 Jun 2000 01:44:34 +0000 Subject: Inheritance overhaul by Chris Bitmead --- doc/FAQ_DEV | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'doc/FAQ_DEV') 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): -- cgit v1.2.3