I am trying to highlight several invisible symbols in Emacs, specifically \n
. I am trying the following:
(standard-display-ascii ?\n "¬\n")
(font-lock-add-keywords nil '(("¬" . font-lock-comment-face)))
Unfortunately, it looks like only typed explicitly symbols will use the specified font-face. Is there a proper way to highlight the display-ascii symbol?
One more related question: replacing nil
with 'lisp-interaction-mode
in the second expression makes it not working anymore. Why is that?