Re: Coding style for emacs - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Coding style for emacs
Date
Msg-id 200608260346.k7Q3kn607099@momjian.us
Whole thread Raw
In response to Re: Coding style for emacs  (Gregory Stark <gsstark@mit.edu>)
Responses Re: Coding style for emacs
List pgsql-hackers
I am still waiting for an actual patch to the developer's FAQ for this.

---------------------------------------------------------------------------

Gregory Stark wrote:
> 
> Andrew Dunstan <andrew@dunslane.net> writes:
> 
> > I use more or less what is in the developers' FAQ (not surprising, since I
> > contributed it). It works just fine for me. See
> > http://www.postgresql.org/docs/faqs.FAQ_DEV.html#item1.9
> > 
> > We should probably bring the docs in line with that, unless someone with more
> > emacs-fu than me has something to add.
> 
> Oh, I've been meaning to email about this. There's a file in the source tree
> but it's buggy. The code in your FAQ seems ok, but I prefer the way I've done
> it:
> 
> (add-hook 'c-mode-hook
>       (function
>        (lambda nil 
>          (if (string-match "pgsql" buffer-file-name)
>          (progn
>            (c-set-style "bsd")
>            (setq c-basic-offset 4) 
>            (setq tab-width 4)
>            (c-set-offset 'case-label '+)
>            (setq indent-tabs-mode t)
>            )
>            ))))
> 
> 
> 
>     
> -- 
>   Gregory Stark
>   EnterpriseDB          http://www.enterprisedb.com
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: CSStorm occurred again by postgreSQL8.2
Next
From: "Magnus Hagander"
Date:
Subject: Re: [DOCS] New XML section for documentation