From: Will Parsons <varro@nodomain.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Making a non-ASCII space character visible
Date: Wed, 20 Jun 2018 17:05:06 -0400 [thread overview]
Message-ID: <fovts2F7ufeU1@mid.individual.net> (raw)
In-Reply-To: mailman.2227.1529375463.1292.help-gnu-emacs@gnu.org
On Monday, 18 Jun 2018 10:30 PM -0400, Nick Helm wrote:
> On Tue, 19 Jun 2018 at 12:12:29 +1200, Will Parsons wrote:
>
>> OK - I have now modified my .emacs file to have the following lines:
>>
>> -------
>> (setq whitespace-display-mappings '((space-mark 32 [183] [46])
>> (space-mark 160 [164] [95])
>> (space-mark 8199 [164] [95])
>> (newline-mark 10 [36 10])
>> (tab-mark 9 [187 9] [92 9])))
>> (global-whitespace-mode 1)
>> (setq-default whitespace-style '(face lines-tail tabs trailing))
>> -------
>>
>> I have removed the setting of whitespace-display-mappings that I had
>> previously manually introduced to custom.el, and the only other
>> setting that appears to reference whitespace is the setting
>>
>> (whitespace-tab ((t (:background "#081820" :foreground "darkgray")))
>>
>> in my custom.el file, which I have now removed.
>>
>> Unfortunately, after making these changes, and having restarted Emacs,
>> there is still no change to the display of u+2007.
>
> This looks good, just a couple more things to tweak. You need to turn on
> visualising of space characters by adding "space-mark" to
> whitespace-style:
>
> (setq-default whitespace-style '(face lines-tail space-mark tabs trailing))
>
> This variable tells whitespace-mode and global-whitespace-mode which
> classes of chars you want to visualise when one of the modes is active.
> The space-mark entry tells Emacs to visualise the various space-mark
> chars you set up with whitespace-display-mappings, in partiuclar your
> new entry for FIGURE SPACEs.
>
> The only other thing is don't forget to put the expressions that set the
> configuration variables (the setqs) before you active the mode,
> something like this:
>
> (setq whitespace-display-mappings '((space-mark 32 [183] [46])
> (space-mark 160 [164] [95])
> (space-mark 8199 [164] [95])
> (newline-mark 10 [36 10])
> (tab-mark 9 [187 9] [92 9])))
> (setq-default whitespace-style '(face lines-tail space-mark tabs trailing))
> (global-whitespace-mode 1)
>
> Try this in your ~/.emacs, cross fingers and restart Emacs.
Thank you very much! The code above didn't *quite* meet my needs,
since regular spaces were indicated by an unwanted middle-dot
character, but that was easily remedied by deleting the mappling for
0020 from whitespace-display-mappings. With that change, everything
seems good.
So, once again, thanks to you, Eli, and the others who have helped me
solve my original problem, and given me a better understanding how
whitespace-mode fits together in the process.
--
Will
next prev parent reply other threads:[~2018-06-20 21:05 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-16 20:15 Making a non-ASCII space character visible Will Parsons
2018-06-16 21:37 ` Will Parsons
2018-06-17 4:31 ` Marcin Borkowski
2018-06-17 5:07 ` Michael Heerdegen
2018-06-17 5:55 ` Eli Zaretskii
2018-06-17 6:24 ` Michael Heerdegen
2018-06-17 6:41 ` Eli Zaretskii
2018-06-17 6:41 ` Michael Heerdegen
[not found] ` <mailman.2115.1529217694.1292.help-gnu-emacs@gnu.org>
2018-06-19 0:45 ` Will Parsons
2018-06-19 1:01 ` Noam Postavsky
[not found] ` <mailman.2220.1529370113.1292.help-gnu-emacs@gnu.org>
2018-06-19 1:26 ` Will Parsons
[not found] ` <mailman.2110.1529214934.1292.help-gnu-emacs@gnu.org>
2018-06-17 18:54 ` Will Parsons
2018-06-17 6:00 ` Eli Zaretskii
[not found] ` <mailman.2111.1529215267.1292.help-gnu-emacs@gnu.org>
2018-06-17 18:38 ` Will Parsons
2018-06-17 18:51 ` Eli Zaretskii
[not found] ` <mailman.2145.1529261474.1292.help-gnu-emacs@gnu.org>
2018-06-17 19:09 ` Will Parsons
2018-06-17 19:31 ` Eli Zaretskii
[not found] ` <mailman.2147.1529263896.1292.help-gnu-emacs@gnu.org>
2018-06-17 20:28 ` Will Parsons
2018-06-18 1:40 ` Nick Helm
[not found] ` <mailman.2154.1529286048.1292.help-gnu-emacs@gnu.org>
2018-06-19 0:12 ` Will Parsons
2018-06-19 2:30 ` Nick Helm
[not found] ` <mailman.2227.1529375463.1292.help-gnu-emacs@gnu.org>
2018-06-20 21:05 ` Will Parsons [this message]
[not found] ` <mailman.2107.1529212061.1292.help-gnu-emacs@gnu.org>
2018-06-17 18:45 ` Will Parsons
[not found] <<fol9fvF7uauU1@mid.individual.net>
[not found] ` <<fole90F986vU1@mid.individual.net>
2018-06-17 0:20 ` Drew Adams
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=fovts2F7ufeU1@mid.individual.net \
--to=varro@nodomain.invalid \
--cc=gyliamos@gmail.com \
--cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.