Python indentation (3 spaces)
Rhodri James
rhodri at kynesim.co.uk
Mon Oct 15 09:13:54 EDT 2018
On 15/10/18 12:28, Marko Rauhamaa wrote:
> Rhodri James <rhodri at kynesim.co.uk>:
>
>> On 15/10/18 05:45, Marko Rauhamaa wrote:
>>> The two-space indentation is the out-of-the-box default for emacs.
>>
>> Ahem. It's the default for certain C styles. It's not even the default
>> for C-mode itself, which is 4.
>
> You must be running a different version of emacs than all the versions
> I've every run.
>
> Try running
>
> emacs -q abc.c
>
> and observe the indentation depth.
https://www.gnu.org/software/emacs/manual/html_node/ccmode/Customizing-Indentation.html#Customizing-Indentation
"""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)."""
--
Rhodri James *-* Kynesim Ltd
More information about the Python-list
mailing list