Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: White-space fixup
Date: Thu, 02 Sep 2010 10:13:38 -0500	[thread overview]
Message-ID: <877hj441r1.fsf@lifelogs.com> (raw)
In-Reply-To: <87d3swr5i3.fsf@marauder.physik.uni-ulm.de>

On Thu, 02 Sep 2010 09:04:04 +0200 Reiner Steib <reinersteib+gmane@imap.cc> wrote: 

RS> On Thu, Sep 02 2010, Lars Magne Ingebrigtsen wrote:
>> I've now removed all trailing white space.
>> 
>> What's the magical setting for having a hook for .el files in the Gnus
>> directory to automatically remove white space when I save files?

RS> Please don't.  "drive-by" whitespace changes are annoying IMHO.
RS> Rather use non-nil `show-trailing-whitespace' to avoid adding it.

So according to http://www.emacswiki.org/emacs/DirectoryVariables we can
set up lisp/.dir-locals.el like this:

     ((lisp-mode . ((indent-tabs-mode . t)
                    ;; would this work? whitespace.el is in Emacs...
                    ;; (whitespace-style (quote (trailing)))
                    (show-trailing-whitespace t))))

assuming we agree on the tabs.  Should we be explicit about anything
else?

Ted




  parent reply	other threads:[~2010-09-02 15:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 16:39 Lars Magne Ingebrigtsen
2010-08-31 16:44 ` Steinar Bang
2010-08-31 16:50   ` Lars Magne Ingebrigtsen
2010-08-31 17:01     ` Lawrence Mitchell
2010-08-31 17:07       ` Lars Magne Ingebrigtsen
2010-09-01 22:02         ` Lars Magne Ingebrigtsen
2010-09-02  6:54           ` Leo
2010-09-02  7:04           ` Reiner Steib
2010-09-02  7:48             ` Steinar Bang
2010-09-02 15:13             ` Ted Zlatanov [this message]
2010-09-03 16:58               ` Lars Magne Ingebrigtsen

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=877hj441r1.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).