all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Hackney <dan@haxney.org>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: The grand indentation unification project
Date: Sun, 27 May 2012 10:42:19 -0400	[thread overview]
Message-ID: <CAMqXDZubegcbFkLS+7M0wL=t=H1CxuFHuVeHqOrkzME_0oQFsw@mail.gmail.com> (raw)
In-Reply-To: <mrtxz2vhb8.fsf@fencepost.gnu.org>

Glenn Morris <rgm@gnu.org> 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



  parent reply	other threads:[~2012-05-27 14:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-26 19:45 The grand indentation unification project Daniel Hackney
2012-05-26 20:05 ` Glenn Morris
2012-05-27  9:28   ` Juri Linkov
2012-05-27 14:42   ` Daniel Hackney [this message]
2012-05-27 17:13     ` Miles Bader
2012-05-27 17:32       ` Daniel Hackney
2012-05-28  5:12         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMqXDZubegcbFkLS+7M0wL=t=H1CxuFHuVeHqOrkzME_0oQFsw@mail.gmail.com' \
    --to=dan@haxney.org \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.