Dev FAQ emacs settings

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: "PostgreSQL Hackers Mailing List" <pgsql-hackers(at)postgresql(dot)org>
Subject: Dev FAQ emacs settings
Date: 2003-05-09 21:41:37
Message-ID: 017301c31673$c9a17e40$6401a8c0@DUNSLANE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-05-10 02:07:56 Re: rint() replacement
Previous Message Tom Lane 2003-05-09 21:03:33 Re: rint() replacement