[asdf-devel] How about a tabs versus spaces policy for asdf?

Tobias C. Rittweiler tcr at freebits.de
Thu Dec 3 08:48:08 UTC 2009

Daniel Herring <dherring at tentpost.com>

> On Wed, 2 Dec 2009, Faré wrote:
>> 2009/12/2 Robert Goldman <rpgoldman at sift.info>:
>>> I should actually have been specific about something else:
>>> If we prefer spaces to tabs (and I will not attempt to stack my
>>> eloquence and vituperation against jwz's), we should probably stick the
>>> git-equivalent of a pre-commit-hook into the repo to refuse to accept tabs.
>>> Daniel --- is your git fu strong enough for this task?
> It could be.  This would require putting the proper hooks/pre-commit
> file in a .git directory.  Should it check all files in the project,
> or only lisp sources?
>> In either case, git-fu is nice. And if git-fu there be, can we also
>> eliminate trailing whitespace?
> See core.whitespace in the git-config manpage; by default git warns
> about trailing whitespace.  Commands that apply patches
> (e.g. git-apply and git-am) have an option to control this;
> --whitespace=error or --whitespace=fix might be what you want.  This
> choice can be made permanent by something like
> # git config apply.whitespace error
> Also look at the gitattributes manpage.
> - Daniel_______________________________________________
> asdf-devel mailing list
> asdf-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-devel

I can recommend to put the following into your .emacs

  (add-hook 'lisp-mode-hook
            #'(lambda ()
                (setq whitespace-style 'color)
                (setq whitespace-chars '(trailing indentation))
                (whitespace-mode 1)))

and Emacs will colorize offending places.


More information about the asdf-devel mailing list