Why Nostr? What is Njump?
2025-03-15 22:33:26

Nicolas Martyanoff on Nostr: TIL that to use a face (e.g. created with DEFFACE) in FONT-LOCK-KEYWORDS (#Emacs), ...

TIL that to use a face (e.g. created with DEFFACE) in FONT-LOCK-KEYWORDS (#Emacs), you need to declare a binding whose value is the name of the face. So for a face named FOO-FACE, just add (DEFVAR FOO-FACE 'FOO-FACE). This happens because Font Lock expects faces in FONT-LOCK-KEYWORDS lists to be symbol whose value is the face to use.

I would love to know why Font Lock cannot realize that the symbol is the name of a face and use it directly.
Author Public Key
npub1dkg70vzk4vvfsc5cup9gkfu2tcrs5unysl7npfvegf78nkuswr5skh54dt