[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"python" c-style-alist definition and PEP7
From: |
Lele Gaifax |
Subject: |
"python" c-style-alist definition and PEP7 |
Date: |
Sat, 09 Dec 2017 09:55:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) |
Hi,
I noticed that the c-style-alist default definition for "python" does not
follow the style recommendations of PEP7[#], w.r.t. `c-basic-offset' and
`indent-tabs-mode'.
In my .emacs.d I thus added something like
(defconst python-c-style
'("python"
(indent-tabs-mode . nil)
(c-basic-offset . 4))
"Rectified CPython style")
(c-add-style "python3" python-c-style)
to adjust those settings, activating that style in a .dir-locals.el file in
the root directory of my CPython sources checkout.
While that is of course easy enough, I wonder whether the default settings
should be "fixed".
What's your opinion?
bye, lele.
[#] https://www.python.org/dev/peps/pep-0007/#code-lay-out
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
address@hidden | -- Fortunato Depero, 1929.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- "python" c-style-alist definition and PEP7,
Lele Gaifax <=