I wanted to change the colours of Anzu's counter, taking the foreground from the Isearch match background and the background from the fringes, like this
So I evaluated
(face-spec-set 'anzu-mode-line `((t :foreground ,(face-attribute 'isearch :background) :background ,(face-attribute 'fringe :background))) 'face-defface-spec)
and it worked. I added it to my
init.el, restarted the emacs server... and then it looked like this:
How do I fix that?
PS If I launch Emacs from the command line instead of opening a client frame, then the faces get the right colours. It also works if I put strings in place of the
(face-spec-set 'anzu-mode-line '((t :foreground "magenta3" :background "grey95")) 'face-defface-spec)