[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modify indention for C/C++

From: Florian Lindner
Subject: Modify indention for C/C++
Date: Wed, 11 Jun 2014 15:24:34 +0200
User-agent: Roundcube Webmail/1.0.1


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)

(setq c-default-style "linux")

I tried that, and it seems to correctly c-style-alist but has no effect. How can I change/modify an indention style?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]