1

Making changes to whitespace-display-mappings while emacs runs doesn't seem to do anything.

(setq
 whitespace-display-mappings
 '(
   (space-mark 32 [183] [46]) ; middle-dot
   (tab-mark 9 [9654 9] [92 9]) ; arrow
  )
 )

Then later on:

(setq whitespace-display-mappings '())

Is there a way to refresh the display mapping so key bindings can be used to change which whitespace is displayed?

2
  • 1
    Try evaluating (whitespace-display-char-on) -- it is a non-interactive function.
    – lawlist
    Commented Jun 3, 2017 at 16:15
  • Thanks for the tip. But for some reason it doesn't work for me.
    – ideasman42
    Commented Jun 4, 2017 at 3:18

1 Answer 1

1

Turning whitespace off then on worked for me. Just evaluate these two functions with M-x eval-expression or M-::

(whitespace-display-char-off)
(whitespace-display-char-on)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.