mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Inheritance overhaul by Chris Bitmead <chris@bitmead.com>
This commit is contained in:
18
doc/FAQ_DEV
18
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):
|
||||
|
||||
|
Reference in New Issue
Block a user