Re: [PATCH] Trim trailing whitespace in vim and emacs

From: Matthew Woodcraft <matthew(at)woodcraft(dot)me(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Trim trailing whitespace in vim and emacs
Date: 2018-06-05 21:21:35
Message-ID: pf6uor$in2$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2018-06-05 18:22, David Fetter wrote:
> Folks,
>
> Here's my attempt to $subject. I've tested with vim, but I'm much less
> certain I got the EMACS code right.
>
> Is there any interest in such a feature?

A few days ago there was a suggestion on this list to add a
.editorconfig file specifying tab width:
https://www.postgresql.org/message-id/87efhuz9be.fsf%40news-spur.riddles.org.uk

The .editorconfig format also supports a trim_trailing_whitespace option
(see https://editorconfig.org/ ).

So that might be a simpler way to achieve this (I suppose people who
don't want this behaviour just wouldn't configure their editors to
honour .editorconfig files).

-M-

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vik Fearing 2018-06-05 21:23:17 Re: Periods
Previous Message Andrew Dunstan 2018-06-05 21:17:31 Re: automating perl compile time checking