qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] add editorconfig
Date: Fri, 21 Jul 2017 14:01:38 +0100	[thread overview]
Message-ID: <20170721130138.GG18014@stefanha-x1.localdomain> (raw)
In-Reply-To: <20170717101547.22295-1-kraxel@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

On Mon, Jul 17, 2017 at 12:15:47PM +0200, Gerd Hoffmann wrote:
> Add a .editorconfig file for qemu.  Specifies the indent and tab style
> for various files (C code and Makefiles for starters).  Most popular
> editors support this either natively or via plugin.
> 
> Check http://editorconfig.org/ for details.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  .editorconfig | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>  create mode 100644 .editorconfig
> 
> diff --git a/.editorconfig b/.editorconfig
> new file mode 100644
> index 0000000000..b2022e391a
> --- /dev/null
> +++ b/.editorconfig
> @@ -0,0 +1,15 @@
> +# http://editorconfig.org
> +root = true
> +
> +[*]
> +end_of_line = lf
> +insert_final_newline = true
> +charset = utf-8
> +
> +[Makefile*]
> +indent_style = tab
> +indent_size = 8
> +
> +[*.{c,h}]
> +indent_style = space
> +indent_size = 4

Missing .cpp and .cc (hard to choose one, we use both!).

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

      reply	other threads:[~2017-07-21 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-17 10:15 [Qemu-devel] [PATCH] add editorconfig Gerd Hoffmann
2017-07-21 13:01 ` Stefan Hajnoczi [this message]

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=20170721130138.GG18014@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).