[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The grand indentation unification project
From: |
Daniel Hackney |
Subject: |
Re: The grand indentation unification project |
Date: |
Sun, 27 May 2012 10:42:19 -0400 |
Glenn Morris <address@hidden> wrote:
> Daniel Hackney wrote:
>
>> I propose adding to the `emacs-lisp-mode' section of ".dir-locals.el" in
>> the source root `(indent-tabs-mode . t)'
>
> We've been here before. Eg:
I should have known I wasn't the first one to have this idea ;)
I understand not wanting to reawaken this bikeshedding thread, but I
would like to submit this humble one-liner which goes through all of the
elisp source and indents each file.
find -name '*.el' -exec emacs -Q --batch '{}' --eval '(progn (setq
make-backup-files nil) (indent-region (point-min) (point-max)))' -f
whitespace-cleanup -f basic-save-buffer-1 \;
Not the most efficient, but it gets the job done. If you guys don't
think it's worth it even with this hack, I'll drop it.
--
Daniel M. Hackney