From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Re: whitespace-mode highlighting colour Date: Mon, 4 Jan 2021 13:02:47 +0100 Message-ID: References: <87ble96maf.fsf@zoho.eu> <87y2h99i6p.fsf@zoho.eu> <87turx9c2g.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37999"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 04 13:03:51 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kwOaU-0009lf-Nb for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Jan 2021 13:03:50 +0100 Original-Received: from localhost ([::1]:33686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwOaT-00020K-P0 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Jan 2021 07:03:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwOZc-00020A-Lc for help-gnu-emacs@gnu.org; Mon, 04 Jan 2021 07:02:58 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:54979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwOZW-0000m7-Fc for help-gnu-emacs@gnu.org; Mon, 04 Jan 2021 07:02:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609761767; bh=5X0SaRpB3FeZWwSh+5Anfo4+A4lZ3ILqhbxJN0vf7vc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=TmX+gyaZu7KcmVOKaaVQWONRJMHk0C+Xclfau7oChjjKoHLl/ThHTZBfEDbfDCKmv nb35CCUioBht5MfldtVpRRou6VeAHGUXEUyc3jpVlAQjchXf5X0ScvnBjkM6/4ZRvf HVIdRGmr/e6x5MC1YIviSsr4oaqDeeW5DuxVou2A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs05.server.lan [172.19.170.173]) (via HTTP); Mon, 4 Jan 2021 13:02:47 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87turx9c2g.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:yUlHJcYH6meP0A/ubkQ74W/R7QO92leaM1BKdh3uAI+7O5e+d7KymzdGAxaaKbkokfbZZ MC+GQd7FkyXpBnR2otyu/aAz+Y3cDmbZdmL63tp2hmF2O7RIbuTL1u6Od7gNMiC6kyc1yuREDByP tQZnM39lH5LETP+dqq5SuVdb1lGqoJlkN3rN4spB+QaQ44yct6Z4R5mxAuyCm7uQ7gAKMmmTTU5r iNIA4byW4hdpPy77/7wFQCaauyNKxjftoWYBkSRlcE+iuZJwAkb8Ici7ClyHKGlydo7GIhRqZQXW Qw= X-UI-Out-Filterresults: notjunk:1;V03:K0:cRk0RBRta2g=:VLI9NezX3tgRtvl5zw4D6D WWJWlrfIEXcShhxU2I9armgX12TshTyDzLCckK6jD4QOYlPeWPl4M3zxXeIMjhoZq+Kkz/sQR CjagwLpespoghCuD+ANNaY5Z8DkuCBS3kNXNZe+sRCth14c+tXVxfjP7nXXYVH6kCFAWTfh76 eFpXElnCFnFMuXEBABVkbC0PJ9pNGOuYBtgcvYl5T2wRG5Cyg/xRhkkbtDFZiB0knDYXfVNOa zhAqCOsvd3XH8PJIW06GHMi7V9lPmx/Th9c0VN79kOrzo/QYqVelsb/OZeEEmaVJDgUHl1TaQ unDhN3zvM+bL/xeCq6DiK0s5rN3jUsQ3NQbYoQc5w8rIkPUo5qFKQf6y9/Cdkywnsl09AB2YO LYT7w9fYa4QKKz5dnri3N6BdV+WWH7uMpF1kwhfcQdvD/Ga5iLoHrmIwMpcUHZaxoziJ469Oo YHoijMmXDeh0Q2QfvbT3iY3ziLMpMMivQGahsQzXi3sBAUqBKW2QhRZjzn0YPRzrNzKsIGOU6 /tUSP5RUctTU4waL8JB2hKu4Zt4XMW7EZo5S/wzvZBvOrIVEuTvdgkn+gL0tZUThEa1cirxzn MskTPiE44+SAojhAy7owTzMgOREehlYI+P Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126987 Archived-At: I do not want to modify the file, but highlight tabs and trailing spaces. > Sent: Monday, January 04, 2021 at 4:57 PM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: whitespace-mode highlighting colour > > michael-franzese wrote: > > > I want the highlight tabs and trailing spaces. You say that > > the variable is obsolete. > > How would be best to tackle the task. > > I guess it means one should use the face, not the variable. > > I do this so I don't have to bother with trailing whitespace or > tabs. Maybe one can configure that in an easier way, because > it feels like a basic thing to do. > > (defun untab-all () > (unless (member major-mode '(makefile-gmake-mode > makefile-mode) ) ; exceptions > (untabify (point-min) (point-max))) > nil) ; tell "did not write buffer to disk" > > (setq-default tab-width 3) > > (setq-default indent-tabs-mode nil) > > ;; (setq before-save-hook nil) > (defun before-save-hook-f () > (untab-all) > (delete-trailing-whitespace) ) > (add-hook 'before-save-hook #'before-save-hook-f) > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >