summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian2003-06-02 04:35:04 +0000
committerBruce Momjian2003-06-02 04:35:04 +0000
commitb67f0ae36e7914c9c9ee843bedfd237968e453ac (patch)
tree485f1944f4baac1c5525ce0be9a1743c5149c8a2 /doc/src
parent6d9ee7e7caceca34b49b8fde9a70195be3e5a286 (diff)
Update Emacs settings, from Andrew Dunstan
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/FAQ/FAQ_DEV.html33
1 files changed, 20 insertions, 13 deletions
diff --git a/doc/src/FAQ/FAQ_DEV.html b/doc/src/FAQ/FAQ_DEV.html
index cb9e2dc39c2..9304e794de5 100644
--- a/doc/src/FAQ/FAQ_DEV.html
+++ b/doc/src/FAQ/FAQ_DEV.html
@@ -12,7 +12,7 @@
<H1>Developer's Frequently Asked Questions (FAQ) for
PostgreSQL</H1>
- <P>Last updated: Tue Feb 18 20:38:29 EST 2003</P>
+ <P>Last updated: Mon Jun 2 00:34:39 EDT 2003</P>
<P>Current maintainer: Bruce Momjian (<A href=
@@ -281,22 +281,29 @@
less -x4
emacs:
M-x set-variable tab-width
+
or
- ; Cmd to set tab stops &amp; 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: