Re: Coding style for emacs

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Bruce Momjian <bruce(at)momjian(dot)us>, Gregory Stark <gsstark(at)mit(dot)edu>, Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Coding style for emacs
Date: 2006-09-02 21:59:36
Message-ID: 20060902215935.GL84229@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Sat, Sep 02, 2006 at 07:22:45PM +0100, Gregory Stark wrote:
> "Jim C. Nasby" <jim(at)nasby(dot)net> writes:
>
> > Has anyone considered adding vi/vim options to the files themselves?
> > Granted, not a trivial task, but it would ensure anyone using vim would
> > have the correct settings. I don't know if emacs has the same ability
> > (I've seen the "Hey emacs, this is a C file" stuff...)
>
> Certainly it does; it even knows that certain variables are safe to allow
> files to set without warning the user and it has the indention marked as such.
>
> I think this would be what you would want.
>
> /*
> * Local variables:
> * eval: (c-set-style "bsd")
> * tab-width: 4
> * c-basic-offset: 4
> * End:
> */
>
> But it would have to be on the end of every single file which would be pretty
> heavyweight.

Yeah, which is the real question... do people think it's worth it enough
to move towards doing that? Of course the nice thing is that *anyone*
(even me :) ) could produce a patch to do that.
--
Jim C. Nasby, Database Architect jim(at)nasby(dot)net
512.569.9461 (cell) http://jim.nasby.net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-09-02 22:04:50 Re: [HACKERS] Use of backslash in tsearch2
Previous Message Jim C. Nasby 2006-09-02 21:49:58 Re: Prepared statements considered harmful

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-09-02 22:04:50 Re: [HACKERS] Use of backslash in tsearch2
Previous Message Bruce Momjian 2006-09-02 21:22:48 Re: [HACKERS] proposal - plpgsql: execute using