How can I configure a different background color for the active window in Emacs?
Right click on desktop and choose 'personalize'. Under My Themes, choose High Contrast theme (pick any). Once that is done, below the themes is a Box that will say 'color' 'High Contrast'.
Select Start > Settings > Personalization > Colors, and then choose your own color, or let Windows pull an accent color from your background.
Click on any part of the active window, or click Window from the menu bar and select the name of the window you want to make active.
To add background color in HTML, use the CSS background-color property. Set it to the color name or code you want and place it inside a style attribute. Then add this style attribute to an HTML element, like a table, heading, div, or span tag.
Try Yoshida's hiwin-mode (visible active window mode): https://github.com/yoshida-mediba/hiwin-mode
If by "window" you mean Emacs' definition of windows, i.e., panes, not really.
If by "window" you mean everyone else's conception of windows, which Emacs calls frames, then yes. Here's an example:
(defadvice handle-switch-frame (around switch-frame-set-background)
(set-background-color "white")
ad-do-it
(set-background-color "yellow"))
(ad-activate 'handle-switch-frame)
(defadvice delete-frame (after delete-frame-set-background)
(set-background-color "yellow"))
(ad-activate 'delete-frame)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With