Commit b67f0ae3 authored by Bruce Momjian's avatar Bruce Momjian

Update Emacs settings, from Andrew Dunstan

parent 6d9ee7e7
Developer's Frequently Asked Questions (FAQ) for PostgreSQL
Last updated: Tue Feb 18 20:38:29 EST 2003
Last updated: Mon Jun 2 00:34:39 EDT 2003
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
......@@ -226,21 +226,28 @@
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
((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)
(cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
auto-mode-alist))
or
/*
......
......@@ -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=
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
......@@ -281,21 +281,28 @@
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
((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)
(cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
auto-mode-alist))
or
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment