From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Highlight tabulated and trailing whitespace Date: Mon, 28 Dec 2020 07:08:54 +0100 Message-ID: References: <87ft3qilf6.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="39280"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: steve-humphreys@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 28 07:09:39 2020 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 1ktlis-000A69-JM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 07:09:38 +0100 Original-Received: from localhost ([::1]:46070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktlir-0001f6-M7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 01:09:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktliJ-0001ew-Am for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 01:09:03 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:54189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktliD-0006W6-6E for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 01:09:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609135734; bh=SDKHDX+DKsjCI81i5LOSdiQqtYNZjH1e9EVZaYJhZbE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=eaXwNQSEGFbXD/JAuacsEIZxmDH80sH1sQaZLNLJjSWwd/YsDpG7xf9Z+uhNcRWOR bzG/GiTwIHiAypPn+D9cjUkd+o60E7Er4+yChLWITi/nsPILZBvyLW8QpH3p4i3mUW jtIM0+H0tyK8iQ3h0Uj0Z0xn4pqdCyNnsbBYTyPI= 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-bs16.server.lan [172.19.170.184]) (via HTTP); Mon, 28 Dec 2020 07:08:54 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:uJ5u+6DbDvrMOJATXCwM0TswDOnktxa58iK4uiA1TMyPCM7k1ARPKefQpJYNvG5Wi7zsE Npi0NHQupIMjlYIPrZ9ctoeDv3H24rAGjvBXbmuDfCaQ7QbJa/R2vT5DnNAtdVpwxf8WgyMabfak ihWy4p1t0YQWoHIZISll3HamM+/LvX9zIWoakjG7m/1xaiAXbQhcOub0M80nd3DfQx1BLqnvuY8y 47SSo0du0XP9S7jOdNjfXIW1tP0PR3OWNiUSG+c4ucL1GfNLVFaFk5JHIETsHVEmBiWTTE/hfnRe 8w= X-UI-Out-Filterresults: notjunk:1;V03:K0:Se81BBXFro0=:8JjqKb1xqqBmdIFJSZRHz5 QIjUcbballUDapbA0Lt+cmVxDEITSpxZyYdckdHeWEWsKU9KcjFef78ssr9a7gVERYeN4ygzS 0XAisVRnEBksf6Z+f6CBcGHt+Jozx1xDfYT95bVySrDE0te71ENc5YLxkX110AbTLXpUsWDYR N6IHqtl25jf0Ow/lEuRHqBDts3hNPYS0S3bwiHtQYq6diNUt1TcA9gxibzHDomyimRiKR8i+z 2qeVOP8+Fz9QXfDd9eJyUmrRz6b4xW/8Y36oRaM1FhdSKdK7kg7nPwrFmsQ5ttVhqLHGTZddq DA6bwvE4mb6wIam24KfNFN8NcS5D9O2JV3OOPYjf8Yux7SYxrS3SbENRA+aHbl+6rHqU0cPQ0 B70yJYux08C1CJtjkWoYpl9Ya0bS1pbkx78Aw3trtDAIcb8cD/WX2Cc5GdGY3LepCQzHBrg43 NpoC5UnMbqVMS/53SNbk3m20Cg3hIEJsummjaNapSnApmuRMSMUIE6P6x2MarFpTmFk9MoDBs lc70s3+28FNKFYIb6tX12CzkOOwygv+jM4wRqtVYyGwF0xhqbrPrenIbQF4+/81okxItbEQY0 oe1GpGqhl++Gg= Received-SPF: pass client-ip=212.227.17.22; envelope-from=steve-humphreys@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:126836 Archived-At: I have tried to show tab marks, but the following commands are confusing m= e. One can use a backgrouund colour and introduce a tab mark. But I have no idea how= to achieve them. (setq whitespace-style '(face tabs)) (setq whitespace-style '(tabs tab-mark)) > Sent: Monday, December 28, 2020 at 10:42 AM > From: steve-humphreys@gmx.com > To: moasenwood@zoho.eu > Cc: help-gnu-emacs@gnu.org > Subject: Re: Highlight tabulated and trailing whitespace > > What can I do to show tabs like I am doing with show-trailing-whitespace= ? > > > Sent: Monday, December 28, 2020 at 10:20 AM > > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > > To: help-gnu-emacs@gnu.org > > Subject: Re: Highlight tabulated and trailing whitespace > > > > steve-humphreys wrote: > > > > > I would like to highlight tabulated and trailing whitespace, using t= he following > > > code on a dark background. The highlighting is not working. I migh= t also be > > > changing tabs with spaced but do not what command I had used. > > > > > > (defun whitesp-highlight () > > > "Highlights whitespace." > > > > > > (require 'whitespace) > > > (setq-local show-trailing-whitespace t) > > > > > > (whitespace-mode) > > > (setq whitespace-style '(face tabs)) > > > (modify-face whitespace-tab nil "#000000") > > > > > > ;; Highlights tabulator regions > > > (setq whitespace-style '(tabs tab-mark)) > > > (global-whitespace-mode 1) ) > > > > (setq show-trailing-whitespace t) > > > > > > -- > > underground experts united > > http://user.it.uu.se/~embe8573 > > https://dataswamp.org/~incal > > > > > > > >