[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PULL 01/19] Add .dir-locals.el file to
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-trivial] [Qemu-devel] [PULL 01/19] Add .dir-locals.el file to configure emacs coding style |
Date: |
Fri, 9 Oct 2015 14:25:48 +0200 |
Hi
Similar to this file, I proposed a clang-format file. I also use
emacs, but clang-format is way better at dealing with reformating,
especially on a given region without touching the rest:
https://lists.nongnu.org/archive/html/qemu-devel/2015-10/msg01278.html
On Thu, Oct 8, 2015 at 6:52 PM, Michael Tokarev <address@hidden> wrote:
> From: "Daniel P. Berrange" <address@hidden>
>
> Some default emacs setups indent by 2 spaces and uses tabs
> which is counter to the QEMU coding style rules. Adding a
> .dir-locals.el file in the top level of the GIT repo will
> inform emacs about the QEMU coding style, and so assist
> contributors in avoiding common style mistakes before
> they submit patches.
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> Reviewed-by: Markus Armbruster <address@hidden>
> Signed-off-by: Michael Tokarev <address@hidden>
> ---
> .dir-locals.el | 2 ++
> 1 file changed, 2 insertions(+)
> create mode 100644 .dir-locals.el
>
> diff --git a/.dir-locals.el b/.dir-locals.el
> new file mode 100644
> index 0000000..3ac0cfc
> --- /dev/null
> +++ b/.dir-locals.el
> @@ -0,0 +1,2 @@
> +((c-mode . ((c-file-style . "stroustrup")
> + (indent-tabs-mode . nil))))
> --
> 2.1.4
>
>
--
Marc-André Lureau
- [Qemu-trivial] [PULL 09/19] target-microblaze: Remove unnecessary variable, (continued)
- [Qemu-trivial] [PULL 09/19] target-microblaze: Remove unnecessary variable, Michael Tokarev, 2015/10/08
- [Qemu-trivial] [PULL 14/19] hw: char: Remove unnecessary variable, Michael Tokarev, 2015/10/08
- [Qemu-trivial] [PULL 13/19] hw: timer: Remove unnecessary variable, Michael Tokarev, 2015/10/08
- [Qemu-trivial] [PULL 05/19] block/ssh: remove dead code, Michael Tokarev, 2015/10/08
- [Qemu-trivial] [PULL 07/19] pc: check for underflow in load_linux, Michael Tokarev, 2015/10/08
- [Qemu-trivial] [PULL 17/19] linux-user: Use g_new() & friends where that makes obvious sense, Michael Tokarev, 2015/10/08
- [Qemu-trivial] [PULL 02/19] sdhci: use PRIx64 for uint64_t type, Michael Tokarev, 2015/10/08
- [Qemu-trivial] [PULL 11/19] MAINTAINERS: Add NSIS file for W32, W64 hosts, Michael Tokarev, 2015/10/08
- Re: [Qemu-trivial] [Qemu-devel] [PULL 00/19] Trivial patches for 2015-10-08, Peter Maydell, 2015/10/09
- [Qemu-trivial] [PULL 01/19] Add .dir-locals.el file to configure emacs coding style, Michael Tokarev, 2015/10/09
- Re: [Qemu-trivial] [Qemu-devel] [PULL 01/19] Add .dir-locals.el file to configure emacs coding style,
Marc-André Lureau <=
- [Qemu-trivial] [PULL 16/19] rocker: Use g_new() & friends where that makes obvious sense, Michael Tokarev, 2015/10/09
- [Qemu-trivial] [PULL 04/19] imx_serial: Generate interrupt on tx empty if enabled, Michael Tokarev, 2015/10/09
- [Qemu-trivial] [PULL 08/19] s/cpu_get_real_ticks/cpu_get_host_ticks/, Michael Tokarev, 2015/10/09
- [Qemu-trivial] [PULL 06/19] pci-assign: do not include sys/io.h, Michael Tokarev, 2015/10/09
- [Qemu-trivial] [PULL 18/19] linux-user: Remove type casts to union type, Michael Tokarev, 2015/10/09
- [Qemu-trivial] [PULL 15/19] .travis.yml: Run make check for all targets, not just some, Michael Tokarev, 2015/10/09
- [Qemu-trivial] [PULL 19/19] tests: Unique test path for /string-visitor/output, Michael Tokarev, 2015/10/09