[Arcana] Namespace indentation?

Jim Blandy jimb at red-bean.com
Fri Apr 10 19:31:54 CDT 2009


Cool --- thanks!

On Fri, Apr 10, 2009 at 2:28 PM, David Carlton <carlton at bactrian.org> wrote:
> On Fri, 10 Apr 2009 14:06:13 -0700, Jim Blandy <jimb at red-bean.com> said:
>
>> Is there some way to get Emacs not to want to indent the contents of a
>> C++ namespace?
>
>> namespace foo {
>
>>    ... I don't want to indent this.
>
>>  };
>
> I'm doing that at work, I think the relevant line is:
>
>  (c-set-offset 'innamespace 0)
>
> Here's the whole hook, in case I'm missing something:
>
> (defun kealia-c-mode-common-hook ()
>  (setq c-basic-offset 4)
>  (c-set-offset 'innamespace 0)
>  (c-set-offset 'access-label '/)
>  (c-set-offset 'case-label '*)
>  (c-set-offset 'statement-case-intro '*)
>  (c-set-offset 'member-init-intro '++)
>  (setq c-label-minimum-indentation 0 )
>  )
>
> David Carlton
> carlton at bactrian.org
>




More information about the Arcana mailing list