* "python" c-style-alist definition and PEP7
@ 2017-12-09 8:55 Lele Gaifax
0 siblings, 0 replies; only message in thread
From: Lele Gaifax @ 2017-12-09 8:55 UTC (permalink / raw)
To: emacs-devel
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.
lele@metapensiero.it | -- Fortunato Depero, 1929.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-09 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-09 8:55 "python" c-style-alist definition and PEP7 Lele Gaifax
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.