[Piglit] [PATCH] dir-locals.el: Added emacs setup based

Andres Gomez agomez at igalia.com
Mon Apr 18 13:14:13 UTC 2016


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 at 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)))))
> + )
-- 
Br,

Andres

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160418/97061fbf/attachment.sig>


More information about the Piglit mailing list