I'd like to customize the mode line with my own faces, depending on whether a particular window is selected or not. Let's say I have this:
(setq-default mode-line-format
'((:eval (propertize
(format-mode-line
mode-line-buffer-identification)
'face (if nil
'mode-line
'mode-line-inactive)))))
I'd like to put instead of nil
a predicate that checks if the
current window is selected. How could I do that?