This is a follow-up question to: Interchange Foreground and Background Colors when highlighting selected text.
How can I do some conditional formatting?
For example I do not want inverse-video
if the foreground color is white. If my foreground color is white I want to manually specify which foreground and background to use when highlighting selected text, otherwise I want to apply inverse-video.