qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] add editorconfig
@ 2017-07-17 10:15 Gerd Hoffmann
  2017-07-21 13:01 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2017-07-17 10:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

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
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] add editorconfig
  2017-07-17 10:15 [Qemu-devel] [PATCH] add editorconfig Gerd Hoffmann
@ 2017-07-21 13:01 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2017-07-21 13:01 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-21 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 10:15 [Qemu-devel] [PATCH] add editorconfig Gerd Hoffmann
2017-07-21 13:01 ` Stefan Hajnoczi

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).