Re: Coding style for emacs

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Gregory Stark <gsstark(at)mit(dot)edu>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Coding style for emacs
Date: 2006-08-11 19:34:55
Message-ID: 200608111934.k7BJYtX03121@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Gregory Stark wrote:
>
> Andrew Dunstan <andrew(at)dunslane(dot)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)
> )
> ))))

Would you please send me a patch to FAQ_DEV.html? I can't figure out
how this new version would affect what is there now.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-08-11 19:42:35 pgsql: plperl: Allow conversion from perl to postgresql array in OUT
Previous Message Bruce Momjian 2006-08-11 19:21:28 Re: Let psql process files with > 4,294,967,295 lines

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-08-11 19:42:38 Re: better support of out parameters in plperl
Previous Message Gregory Stark 2006-08-11 18:52:41 Re: Coding style for emacs