| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Kings-Lynne | 2006-08-31 02:17:28 | Is this getting through? |
| Previous Message | Bruce Momjian | 2006-08-31 00:33:37 | Re: [HACKERS] Performance testing of COPY (SELECT) |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zoltan Boszormenyi | 2006-08-31 03:49:57 | Re: [HACKERS] Performance testing of COPY (SELECT) TO |
| Previous Message | Bruce Momjian | 2006-08-31 00:33:37 | Re: [HACKERS] Performance testing of COPY (SELECT) |