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

From Alvaro Herrera
Subject Re: Coding style for emacs
Date
Msg-id 20060831014801.GJ22618@alvh.no-ip.org
Whole thread Raw
In response to Re: Coding style for emacs  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Coding style for emacs
List pgsql-hackers
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.


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Performance testing of COPY (SELECT)
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Is this getting through?