I'm trying to set unicode characters for the truncation and wrap slots in the standard display table (see code below) that are used in terminal mode or GUI when there is no fringe. It is working for truncated lines, but not for wrapped lines: the ↩︎
is not displayed and is replaced by an hollow box. I suspect I may have to use make-glyph-code
but I'm not sure of the syntax.
(set-display-table-slot standard-display-table 'truncation ?…)
(set-display-table-slot standard-display-table 'wrap ?↩︎)
Solution:
The problem was the "↩︎" glyph being substituted by the glyph from a fallback font (Fira Code in my case). I'm not sure this is a bug but here is the solution:
(defface fallback '((t :family "Fira Code")) "Display")
(set-display-table-slot standard-display-table 'wrap
(make-glyph-code ?↩ 'fallback))
word-wrap
looking character I have seen is a bitmap image that appears on the fringe for GUI versions of Emacs, or built-in to the display for terminal versions and GUI versions with no fringe. How can we as forum participants generate a minimal working example of what you term as'wrap
orwrap slots
? – lawlist May 11 '20 at 13:49$
) or wrapped line (default is`). The term slot comes from the documentation of the
set-display-table-slot` function. – Nicolas Rougier May 11 '20 at 14:01