Florian Lindner [2014-06-11 15:24:34 +02:00] wrote:
what is the canonical way to modify indention for certain keywords?
I've found numerous ways in the internets. I want to change the linux
style so, that is does not do indention for namespaces.
(c-add-style "linux"
'(
(c-basic-offset . 2)
(c-offset-alist . (
(namespace-open . 0)
(namespace-close . 0)
(innamespace . 0)
))
))
How about this?
(c-add-style "my-linux"
'("linux"
(c-basic-offset . 2)
(c-offset-alist (namespace-open . 0)
(namespace-close . 0)
(innamespace . 0))))
This adds "my-linux" style, so the original is not overwritten.