clang-format: how to set default system-wide style file?

I have clang-format installed on my Mac, and I routinely use emacs’ tramp-mode to edit remote C/C++ files. In such scenarios, running clang-format using whatever commands emacs provides will

  • use some hidden, default style file
  • ignore the .clang-format file in the remote server, since clang-format.el is not tramp-mode-aware.

(For instance, I’ve posted too.)

Question: is there a way to forcefully specify a system-wide default style file?


  • cfe-devs@
  • cfe-dev@