[Mesa-dev] [PATCH] dir-locals.el: Adds whitespace support

Andres Gomez agomez at igalia.com
Tue Nov 8 17:51:33 UTC 2016


If nobody says otherwise, I will land this by the beginning of next
week.

On Sun, 2016-10-23 at 00:10 +0300, Andres Gomez wrote:
> Provides support for highlighting incorrect indentation.
> 
> v2: Removed too long lines trail highlighting, as suggested by Ilia
>     Mirkin.
> 
> Signed-off-by: Andres Gomez <agomez at igalia.com>
> ---
>  .dir-locals.el | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/.dir-locals.el b/.dir-locals.el
> index 4b53931..5340c3a 100644
> --- a/.dir-locals.el
> +++ b/.dir-locals.el
> @@ -1,4 +1,5 @@
> -((prog-mode
> +((nil . ((show-trailing-whitespace . t)))
> + (prog-mode
>    (indent-tabs-mode . nil)
>    (tab-width . 8)
>    (c-basic-offset . 3)
> @@ -8,6 +9,10 @@
>  	    (c-set-offset 'case-label '0)
>  	    (c-set-offset 'innamespace '0)
>  	    (c-set-offset 'inline-open '0)))
> -  )
> +  (whitespace-style face indentation)
> +  (whitespace-line-column . 79)
> +  (eval ignore-errors
> +        (require 'whitespace)
> +        (whitespace-mode 1)))
>   (makefile-mode (indent-tabs-mode . t))
>   )
> 
-- 
Br,

Andres


More information about the mesa-dev mailing list