When I switch on whitespace-mode I get all the indicators and color for showing superfluous whitespace. So far so good.

But when I switch off whitespace-mode the space indicator . and the line-end indicator $ stay.

How can I switch them off as well, so that the buffer looks normal again?

  • Can you provide a recipe starting from emacs -Q to demonstrate the problem?
    – phils
    Commented Dec 21, 2017 at 8:16
  • @phils I cannot reproduce it with a vanilla Emacs. Must be an issue with my set-up. (helm might interfere???)
    – halloleo
    Commented Dec 21, 2017 at 23:13
  • Certainly test anything you suspect is the issue, but if you're at a loss then recursive bisection of your config is an efficient way to try to track down the culprit. github.com/Malabarba/elisp-bug-hunter might help to automate the process.
    – phils
    Commented Dec 22, 2017 at 3:22

1 Answer 1


It turns out that the set up with a multitude of additional packages is responsible for this problem. (Vanilla Emacs does not have this issue.) But it is hard to determine what exactly causes the problem.

However if the issue occurs, a manual ad hoc fix is possible: Just erase the local display table. I have defined a command for this:

(defun my-erase-local-display-table ()
  (if buffer-display-table
      (setq leo-buffer-display-table-backup buffer-display-table))
  (setq buffer-display-table nil))

When things get pear-shaped in a buffer, just call this comamnd and everything should be back to normal.

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.