Re: C coding conventions for notmuch

Subject: Re: C coding conventions for notmuch

Date: Thu, 25 Nov 2010 12:08:25 +0100

To: Daniel Kahn Gillmor, notmuch

Cc:

From: Michal Sojka


On Wed, 24 Nov 2010, Daniel Kahn Gillmor wrote:
> On 11/24/2010 04:25 PM, Michal Sojka wrote:
> >               (c-cleanup-list . (space-before-funcall))
> 
> This line makes my emacs prompt that it "may not be safe" -- it seems
> impolite to ask users just opening up the code within emacs to execute
> arbitrary emacs macros.


Hmm. I have this settings in .emacs instead of .dir-locals.el so I
didn't noticed that.

This is the relevant piece of my .emacs if somebody is interested in it:

(defconst cworth-c-style
  `((c-basic-offset . 4)
    (c-cleanup-list . (space-before-funcall)))
    "Carl Worth's C/C++ Programming Style")

(c-add-style "cworth" cworth-c-style)


(dir-locals-set-class-variables
 'notmuch
 '((c-mode . ((c-file-style . "cworth")))
   (c++-mode . ((c-file-style . "cworth")))))
(dir-locals-set-directory-class "~/src/notmuch" 'notmuch)


-Michal

Thread: