Formatting scripts in CTDB source code (was Re: [PATCHES] Various CTDB bug fixes and improvements)
martin at meltin.net
Wed Jan 13 03:57:40 UTC 2016
On Tue, 12 Jan 2016 19:17:34 +0100, Michael Adam <obnox at samba.org>
> - It would be *SOOO* great if we could stop using
> that 8-char tab + 4 chars as half tab indentation!!! :-)
I think this is historical. Most people hacking the scripts (including
me) have been Emacs users and that is the default Emacs indentation for
As long as nobody complains I'll switch to tabs and update code as
it gets edited.
I'll make case statement labels line up with the "case" keyword to
avoid crazy amounts of indentation. The author of that page seems to
suggest that this makes the indentation compatible with VIM.
For the record, I'm using the following in my ~/.emacs:
(setq-default sh-basic-offset 8
peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 173 bytes
Desc: OpenPGP digital signature
More information about the samba-technical