From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70325 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: White-space fixup Date: Thu, 02 Sep 2010 09:04:04 +0200 Message-ID: <87d3swr5i3.fsf@marauder.physik.uni-ulm.de> References: <87d3syd956.fsf@dod.no> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283412672 20351 80.91.229.12 (2 Sep 2010 07:31:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Sep 2010 07:31:12 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18711@lists.math.uh.edu Thu Sep 02 09:31:10 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Or4GJ-0006Wi-L0 for ding-account@gmane.org; Thu, 02 Sep 2010 09:31:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Or4GG-0006GP-Sl; Thu, 02 Sep 2010 02:31:04 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Or4GF-0006GA-P3 for ding@lists.math.uh.edu; Thu, 02 Sep 2010 02:31:03 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Or4GE-0002Bb-IU for ding@lists.math.uh.edu; Thu, 02 Sep 2010 02:31:03 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Or4GD-0000lm-00 for ; Thu, 02 Sep 2010 09:31:01 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Or4GD-0006Uo-9H for ding@gnus.org; Thu, 02 Sep 2010 09:31:01 +0200 Original-Received: from p4fd469e9.dip.t-dialin.net ([79.212.105.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Sep 2010 09:31:01 +0200 Original-Received: from Reiner.Steib by p4fd469e9.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Sep 2010 09:31:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p4fd469e9.dip.t-dialin.net X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l;3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2;n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3 Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70325 Archived-At: 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. ,----[ 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/