From: Reiner Steib <reinersteib+gmane@imap.cc>
To: ding@gnus.org
Subject: Re: White-space fixup
Date: Thu, 02 Sep 2010 09:04:04 +0200 [thread overview]
Message-ID: <87d3swr5i3.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m3hbi9gm1z.fsf@quimbies.gnus.org>
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?
Please don't. "drive-by" whitespace changes are annoying IMHO.
Rather use non-nil `show-trailing-whitespace' to avoid adding it.
,----[ <f1> v show-trailing-whitespace RET ]
| show-trailing-whitespace is a variable defined in `frame.el'.
| Its value is nil
|
| Automatically becomes buffer-local when set in any fashion.
|
| Documentation:
| *Non-nil means highlight trailing whitespace.
| This is done in the face `trailing-whitespace'.
`----
I use the following...
(when (facep 'trailing-whitespace)
(set-face-attribute 'trailing-whitespace nil
:background "pink"))
(let ((hook (lambda () (setq show-trailing-whitespace t))))
(mapc (lambda (var) (add-hook var hook))
(cons 'lisp-mode-hook
'(emacs-lisp-mode-hook change-log-mode-hook))))
(setq-default show-trailing-whitespace nil)
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2010-09-02 7:04 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 [this message]
2010-09-02 7:48 ` Steinar Bang
2010-09-02 15:13 ` Ted Zlatanov
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=87d3swr5i3.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--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).