[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modify indention for C/C++
From: |
Teemu Likonen |
Subject: |
Re: Modify indention for C/C++ |
Date: |
Wed, 11 Jun 2014 16:42:45 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) |
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.
signature.asc
Description: PGP signature