Python indentation (3 spaces)
Rhodri James
rhodri at kynesim.co.uk
Mon Oct 15 12:06:04 EDT 2018
On 15/10/18 16:41, Marko Rauhamaa wrote:
> Rhodri James <rhodri at kynesim.co.uk>:
>
>> On 15/10/18 12:28, Marko Rauhamaa wrote:
>>> Try running
>>>
>>> emacs -q abc.c
>>>
>>> and observe the indentation depth.
>>
>> """User Option: c-basic-offset
>>
>> This style variable holds the basic offset between indentation
>> levels. It's factory default is 4, but all the built-in styles set it
>> themselves, to some value between 2 (for gnu style) and 8 (for bsd,
>> linux, and python styles)."""
>
> To realize why 2 is the factory default despite the above statement, we
> observe that the factory setting of c-default-style specifies "gnu" for
> C-like files other than Java and awk.
In other words, only for some C styles. As I said.
--
Rhodri James *-* Kynesim Ltd
More information about the Python-list
mailing list