From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: whitespace issues Date: Wed, 1 Jul 2015 10:06:55 +0200 Message-ID: <20150701080655.GA13638@tuxteam.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1435738047 8464 80.91.229.3 (1 Jul 2015 08:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2015 08:07:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rusi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 01 10:07:22 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZAD36-0006Iv-0M for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jul 2015 10:07:16 +0200 Original-Received: from localhost ([::1]:50137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAD35-00016G-0a for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jul 2015 04:07:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAD2r-00015Y-Rd for help-gnu-emacs@gnu.org; Wed, 01 Jul 2015 04:07:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAD2o-00038c-AA for help-gnu-emacs@gnu.org; Wed, 01 Jul 2015 04:07:01 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36638 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAD2o-00037x-1v for help-gnu-emacs@gnu.org; Wed, 01 Jul 2015 04:06:58 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ZAD2l-0003gr-Lk; Wed, 01 Jul 2015 10:06:55 +0200 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105353 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Jun 30, 2015 at 07:37:17PM -0700, Rusi wrote: > On Tuesday, June 30, 2015 at 8:36:37 PM UTC+5:30, Óscar Fuentes wrote: > > Rusi writes: > > > > > I have two somewhat related questions, both around whitespace: > > > > > > 1. Is it possible to have some sort of save-hook so that all leading > > > (indentation) whitespace is cleaned up to space alone and tabs are > > > removed? > > > > https://github.com/purcell/whitespace-cleanup-mode I don't know whether it has been mentioned in the thread, but there's a "whitespace-cleanup" which is part of the standard Emacs distribution. I use it from time to time, whenever I suspect that whitespace is messed up in a file. Very handy. - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlWTn58ACgkQBcgs9XrR2kbVVwCeIw3pwcPaDWH+vL8WZ3g8Y6l4 nPoAn0zOEPp8X1EQ6gqfKlswnvUfO+B6 =Favr -----END PGP SIGNATURE-----