On 06/23/2013 03:43 PM, Andrew Dunstan wrote:
>
>
>
> The idea is a very good one in principle, but my short experiment with
> the provided .dir-locals.el didn't give me BSD style brace
> indentation. It works if we can do those "unsafe" things, but then we
> surely don't want to have a user prompted to accept the settings each
> time. If .dir-locals.el won't do what we need on its own, it seems to
> me hardly worth having.
However, it does work if you add this at the beginning of the c-mode list:
(c-file-style . "bsd")
cheers
andrew