help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: whitespace issues


From: Rusi
Subject: Re: whitespace issues
Date: Tue, 30 Jun 2015 09:21:12 -0700 (PDT)
User-agent: G2/1.0

On Tuesday, June 30, 2015 at 8:32:21 PM UTC+5:30, Jorge A. Alfaro-Murillo 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?
> 
> (add-hook 'before-save-hook 
>           (lambda () (save-excursion (untabify (point-min) 
>           (point-max)))))

How to have this only for (say) python-mode?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]