|
From: | David Kastrup |
Subject: | Re: Use directory-local variables to establish some coding styles in Emacs (issue 6460109) |
Date: | Sun, 19 Aug 2012 22:34:18 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
John Mandereau <address@hidden> writes: > Il giorno dom, 19/08/2012 alle 16.02 +0000, address@hidden ha > scritto: >> Could you add a script (either shell or python) which applies this >> formatting to all scheme files in the repository? I'd like to see how >> that changes the scheme files. > > You can try running (after having applied David's patch) > > emacs -batch scm/*.scm --eval '(progn (delete-trailing-whitespace) > (indent-region (point-min) (point-max) nil) (save-buffer))' > > On my system this has only changed x11-color.scm. > > Note that this doesn't remove tabs (although I installed David's patch > that adds .dir-locals.el), indent-tabs-mode does not affect existing indentation. And I don't think it should. -- David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |