all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lele Gaifax <lele@metapensiero.it>
To: emacs-devel@gnu.org
Subject: "python" c-style-alist definition and PEP7
Date: Sat, 09 Dec 2017 09:55:10 +0100	[thread overview]
Message-ID: <874lp0s2kx.fsf@metapensiero.it> (raw)

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.




                 reply	other threads:[~2017-12-09  8:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874lp0s2kx.fsf@metapensiero.it \
    --to=lele@metapensiero.it \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.