Not tested, but I am told that should fix the warning asking for input at each buffer opening. Thanks to Roman Lebedev for the fix.
Taken from: https://gcc.gnu.org/wiki/FormattingCodeForGCC I assumed it is upstream enough, but since I don't use emacs, I have not tested and just hope it is good. Do not hesitate to commit better emacs settings to follow our coding style!