From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: whitespace issues Date: Tue, 30 Jun 2015 12:27:09 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435681823 5910 80.91.229.3 (30 Jun 2015 16:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2015 16:30:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 18:30:18 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 1Z9yQL-0006UA-QA for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 18:30:17 +0200 Original-Received: from localhost ([::1]:47817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9yQL-0002OV-14 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 12:30:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Injection-Info: mx02.eternal-september.org; posting-host="ad871ce417d1fb2ea3c87e49e48c0ae1"; logging-data="18745"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZnaBBcqNwsVNsEQI93ar9hCPcuZkb494=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:RWAmYTGU68dRQSkDt4xj5Z+WDnQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:213041 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:105329 Archived-At: 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? Yes, but if you set indent-tabs-mode to nil hitting tab will insert spaces instead of tabs so you won't have to remove tabs. -- Dan Espen