[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New line and trailing whitespaces
From: |
Eli Zaretskii |
Subject: |
Re: New line and trailing whitespaces |
Date: |
Tue, 23 Apr 2024 19:19:02 +0300 |
> Date: Tue, 23 Apr 2024 17:38:15 +0200
> From: Ergus <spacibba@aol.com>
> Cc: help-gnu-emacs@gnu.org
>
> >You need to customize whitespace-display-mappings. Specifically, the
> >tab-mark element of the value is by default the vector '[?� ?\t], and
> >you need to replace each of these two characters with a glyph that has
> >the face you want, using make-glyph-code. Caveat: a comment in
> >whitespace.el explains why only newlines are given a face:
> >
> > ;; Only insert face bits on NEWLINE char mapping to avoid
> > ;; obstruction of other faces like TABs and (HARD) SPACEs
> > ;; faces, font-lock faces, etc.
> >
>
> Ahh this is exactly what I want..
>
> Do you think it worth adding your paragraph as a comment somewhere in
> whitespace or reference that in its manual section?
IMO, if we want users to be able to do this, we need a more
user-friendly way of doing that. Like define a special face, and make
whitespace.el use make-glyph-code with that face, given some user
option setting.
Patches welcome.
- New line and trailing whitespaces, Ergus, 2024/04/20
- Re: New line and trailing whitespaces, Eli Zaretskii, 2024/04/20
- Re: New line and trailing whitespaces, Eli Zaretskii, 2024/04/20
- Re: New line and trailing whitespaces, Ergus, 2024/04/20
- Re: New line and trailing whitespaces, Eli Zaretskii, 2024/04/21
- Re: New line and trailing whitespaces, Ergus, 2024/04/21
- Re: New line and trailing whitespaces, Eli Zaretskii, 2024/04/22
- Re: New line and trailing whitespaces, Ergus, 2024/04/22
- Re: New line and trailing whitespaces, Eli Zaretskii, 2024/04/23
- Re: New line and trailing whitespaces, Ergus, 2024/04/23
- Re: New line and trailing whitespaces,
Eli Zaretskii <=
- Re: New line and trailing whitespaces, Ergus, 2024/04/23
- Re: New line and trailing whitespaces, Eli Zaretskii, 2024/04/24
- Re: New line and trailing whitespaces, Ergus, 2024/04/24
- Re: New line and trailing whitespaces, Eli Zaretskii, 2024/04/24
- Re: New line and trailing whitespaces, Ergus, 2024/04/22