dir-locals.el: Added emacs setup based

Submitted by Andres Gomez on April 13, 2016, 9:51 p.m.

Details

Message ID 1460584307-8822-1-git-send-email-agomez@igalia.com
State Superseded
Headers show
Series "dir-locals.el: Added emacs setup based" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Andres Gomez April 13, 2016, 9:51 p.m.
Based on current conventions at .editorconfig

Signed-off-by: Andres Gomez <agomez@igalia.com>
---
 .dir-locals.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 .dir-locals.el

Patch hide | download patch | download mbox

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..d16914b
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,12 @@ 
+((nil . ((indent-tabs-mode . t)
+	 (tab-width . 8)))
+ (prog-mode .
+	    ((c-file-style . "linux")))
+ (cmake-mode .
+	     ((cmake-tab-width . 8)))
+ (python-mode .
+	      ((indent-tabs-mode . nil)
+	       (tab-width . 4)
+	       (eval . (progn
+			 (add-to-list 'write-file-functions 'delete-trailing-whitespace)))))
+ )

Comments

Hi,

anyone with some emacs-fu can review this?

Thanks! :)


On Thu, 2016-04-14 at 00:51 +0300, Andres Gomez wrote:
> Based on current conventions at .editorconfig
> 
> Signed-off-by: Andres Gomez <agomez@igalia.com>
> ---
>  .dir-locals.el | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 .dir-locals.el
> 
> diff --git a/.dir-locals.el b/.dir-locals.el
> new file mode 100644
> index 0000000..d16914b
> --- /dev/null
> +++ b/.dir-locals.el
> @@ -0,0 +1,12 @@
> +((nil . ((indent-tabs-mode . t)
> +	 (tab-width . 8)))
> + (prog-mode .
> +	    ((c-file-style . "linux")))
> + (cmake-mode .
> +	     ((cmake-tab-width . 8)))
> + (python-mode .
> +	      ((indent-tabs-mode . nil)
> +	       (tab-width . 4)
> +	       (eval . (progn
> +			 (add-to-list 'write-file-functions 'delete-
> trailing-whitespace)))))
> + )
On Apr 13, 2016 5:52 PM, "Andres Gomez" <agomez@igalia.com> wrote:
>
> Based on current conventions at .editorconfig
>
> Signed-off-by: Andres Gomez <agomez@igalia.com>
> ---
>  .dir-locals.el | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 .dir-locals.el
>
> diff --git a/.dir-locals.el b/.dir-locals.el
> new file mode 100644
> index 0000000..d16914b
> --- /dev/null
> +++ b/.dir-locals.el
> @@ -0,0 +1,12 @@
> +((nil . ((indent-tabs-mode . t)
> +        (tab-width . 8)))
> + (prog-mode .
> +           ((c-file-style . "linux")))
> + (cmake-mode .
> +            ((cmake-tab-width . 8)))
> + (python-mode .
> +             ((indent-tabs-mode . nil)
> +              (tab-width . 4)
> +              (eval . (progn
> +                        (add-to-list 'write-file-functions
'delete-trailing-whitespace)))))

Definitely not. Showing trailing whitespace seems fine though.

> + )
> --
> 2.8.0.rc3
>
> _______________________________________________
> Piglit mailing list
> Piglit@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
On Mon, 2016-04-18 at 09:22 -0400, Ilia Mirkin wrote:
> On Apr 13, 2016 5:52 PM, "Andres Gomez" <agomez@igalia.com> wrote:

> > + (python-mode .
> > +             ((indent-tabs-mode . nil)
> > +              (tab-width . 4)
> > +              (eval . (progn
> > +                        (add-to-list 'write-file-functions
> 'delete-trailing-whitespace)))))
> 
> Definitely not. Showing trailing whitespace seems fine though.

Fair enough. I will send a new version of the patch.

Thanks!

-- 
Br,

Andres