]> granicus.if.org Git - postgresql/commitdiff
Update Emacs settings, from Andrew Dunstan
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Jun 2003 04:35:04 +0000 (04:35 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Jun 2003 04:35:04 +0000 (04:35 +0000)
doc/FAQ_DEV
doc/src/FAQ/FAQ_DEV.html

index dd82f47ce1ef4876bb672cbe5392c38bfcb34ec2..6a6f1d51d5ea2a4b4ae5a927b18db495b95ec02c 100644 (file)
@@ -1,7 +1,7 @@
 
           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)
    
             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
+
+        (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))
+                (cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
+                auto-mode-alist))
         or
             /*
              * Local variables:
index cb9e2dc39c253deac16c7ada1941b145f9f8f8ca..9304e794de514c75afd6b442497cefdd78928509 100644 (file)
@@ -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>
             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: