I am using emacs 24.5 and I ran into a problem with file local variables.
I am working on a git project where file local variables are set like:
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
However, they seem to be using unindented namespaces. But when I indent the whole buffer I also get namespaces indented.
Is this the desired default behaviour? How can I override the namespace indendation?
I tried the answer mentioned here: https://stackoverflow.com/questions/2619853/emacs-override-indentation
But I want to do this only for the current project, thus I tried to put it in a .dir-locals.el file.
((cc-mode (eval add-hook 'c++-mode-hook (lambda() (c-set-offset innamespace )))))
I also tried:
((cc-mode . (c-offsets-alist . ((innamespace . )))))
I also tried changing the style in my dir-locals.el, but none of them seem to override the file local setting. Is this a priority issue of file local variables?