Re: [PATCH] Trim trailing whitespace in vim and emacs - Mailing list pgsql-hackers

From Matthew Woodcraft
Subject Re: [PATCH] Trim trailing whitespace in vim and emacs
Date
Msg-id pf6uor$in2$1@blaine.gmane.org
Whole thread Raw
In response to [PATCH] Trim trailing whitespace in vim and emacs  (David Fetter <david@fetter.org>)
Responses Re: [PATCH] Trim trailing whitespace in vim and emacs
List 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-



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: automating perl compile time checking
Next
From: Vik Fearing
Date:
Subject: Re: Periods