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 https://github.com/kljohann/clang-format.el/issues/5 too.)
Question: is there a way to forcefully specify a system-wide default style file?
Thanks,
Zongheng