Hartmut Goebel transcribed 1.8K bytes:
> Am 13.03.19 um 19:16 schrieb Schanzenbach, Martin:
> > In the end, please also check https://docs.gnunet.org/#Coding-style and
> > adjust your editor to it.
> > Currently, the file has mixed spaces and tabs which is quite unreadable
> > (for me).
>
> Thanks for pointing this out, I simply missed this. Coming form
> Python-land, there is basically a single coding style :-)
>
> Can somebody provide me with a emacs ".dir-locals.el" file, please?
> Generally, for emacs users adding a ".dir-locals.el" in to top level
> directories of each project could configure the emacs to our coding style.
Our idea seems to be to have as little
files as possible in the top folder. I used to have files for
flake8 and others in there until someone moved them to contrib.
I think something like this would be enough:
((nil . ((indent-tabs-mode . f)
(tab-width . 2)))
(c-mode . ((c-file-style . "gnu"))))
But I might be missing a style or gnu already
setting tab-width, etc..
>
> Am 13.03.19 um 22:29 schrieb Schanzenbach, Martin:
>
> > Either that or have a lint job in the pipeline in the CI.
>
> This but mess up the blame, too.
>
>
> Am 13.03.19 um 21:27 schrieb ng0:
> > Okay. Works for C, but not in intendation enforcing languages (Python),
> > where I've done it like this.
>
> Python already provides a moduel for this: tabnanny [1]
>
> python -m tabnanny file_or_directory ...
>
> [1] https://docs.python.org/3/library/tabnanny.html
>
>
>
> --
> Regards
> Hartmut Goebel
>
> | Hartmut Goebel | [email protected] |
> | www.crazy-compilers.com | compilers which you thought are impossible |
>
>
>
> _______________________________________________
> GNUnet-developers mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/gnunet-developers
_______________________________________________
GNUnet-developers mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnunet-developers