-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
I'm running on the develop branch of spacemacs, using the c-c++ and lsp layers.
I use clang-format for C/C++, I don't know how to configure c-c++ mode to respect more of the clang-format rules as I'm editing. My main issue at the moment is that emacs tries to auto-indent inside the top-level of a namespace scope, whereas if I format the buffer, I get the desired behaviour of no indentation. (I've tried using c-c++-enable-clang-support t
as referenced by this issue, but it doesn't do anything).
Similarly, I have to manually set the c-basic-offset
to match the project I'm working on. This information is readily available in a clang-format file, so I would imagine it's possible to auto-set these things when a clang-format file is discovered. (This is related to this issue however what I'm asking about has a wider scope).
Is there something I'm missing, or is support for this kind of thing not in spacemacs yet? If not, I think this would be a good feature. Is it feasible?
Other related links: