Re: Dev FAQ emacs settings

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Dev FAQ emacs settings
Date: 2003-06-02 04:35:09
Message-ID: 200306020435.h524Z9e29552@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


FAQ_DEV updated. Thanks.

---------------------------------------------------------------------------

Andrew Dunstan wrote:
> The Developer FAQ is slightly awry for emacs settings, or at least it was for my setup.
>
> Here's what I ended up getting to work
>
> ;;-----------------
> (c-add-style "pgsql"
> '("bsd"
> (indent-tabs-mode . t)
> (c-basic-offset . 4)
> (tab-width . 4)
> (c-offsets-alist .
> ((case-label . +)))
> )
> nil ) ; t = set this style, nil = don't
>
> (defun pgsql-c-mode ()
> (c-mode)
> (c-set-style "pgsql")
> )
>
> (setq auto-mode-alist
> (cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
> auto-mode-alist))
> ;;--------------------------
>
> (and if this doesn't show that despite my pushing for a W32 port I'm a Unix guy at heart, nothing will :-)
>
> andrew

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-06-02 05:26:53 Re: pg_database encoding again
Previous Message Christopher Kings-Lynne 2003-06-02 04:33:23 Re: pg_database encoding again