Skip site navigation (1) Skip section navigation (2)

Re: Coding style for emacs

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: 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-08-31 01:48:01
Message-ID: 20060831014801.GJ22618@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Andrew Dunstan wrote:

> Looking at this further, I am wondering if it would not be better to put 
> sample .emacs and .vimrc files in the source (in, say, src.tools).

What does people use in .vimrc?  Mine has simply this:

:  set cinoptions=(0
:  set tabstop=4
:  set shiftwidth=4

wrapped in a 

:if match(getcwd(), "/home/alvherre/Code/CVS/pgsql") == 0 
 ...
:endif

of course.

I find it to be all I need to get the style Postgres uses.  (On the
other hand, default cinoptions may be different on other versions of
Vim)

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

pgsql-hackers by date

Next:From: Christopher Kings-LynneDate: 2006-08-31 02:17:28
Subject: Is this getting through?
Previous:From: Bruce MomjianDate: 2006-08-31 00:33:37
Subject: Re: [HACKERS] Performance testing of COPY (SELECT)

pgsql-patches by date

Next:From: Zoltan BoszormenyiDate: 2006-08-31 03:49:57
Subject: Re: [HACKERS] Performance testing of COPY (SELECT) TO
Previous:From: Bruce MomjianDate: 2006-08-31 00:33:37
Subject: Re: [HACKERS] Performance testing of COPY (SELECT)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group