Dev FAQ emacs settings - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Dev FAQ emacs settings
Date
Msg-id 017301c31673$c9a17e40$6401a8c0@DUNSLANE
Whole thread Raw
Responses Re: Dev FAQ emacs settings
List 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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: rint() replacement
Next
From: Bruce Momjian
Date:
Subject: Re: rint() replacement