[cfe-users] clang-format: how to set default system-wide style file?

Zongheng Yang via cfe-users cfe-users at lists.llvm.org
Sun Apr 22 22:29:43 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180423/9e105459/attachment.html>


More information about the cfe-users mailing list