Assuming I customized my default C indentation settings through
M-x customize-variable c-offsets-alist:
(custom-set-variables '(c-offsets-alist (quote ((statement-case-open . 0) (substatement-open . 0) (case-label . +) (access-label . -) (label . 0) (arglist-intro . +) (arglist-cont . 0) (arglist-cont-nonempty . +) (arglist-close . 0)))))
When I want to edit a project using a specific indentation file, there is (or I can create) a
.dir-locals.el indicating it:
((c-mode . ((c-file-style . "GNU"))))
c-offsets-alist from my configuration still override the
I've tried setting
.dir-locals, but it didn't work; setting
nil had no effect, and setting
nil completely disables indentation.
Is it possible to disable
c-offsets-alist from having an effect when
c-file-style is non-nil?