Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom background for active window

How can I configure a different background color for the active window in Emacs?

like image 900
Mariusz Nowak Avatar asked Oct 04 '09 16:10

Mariusz Nowak


People also ask

How do I change my active window background color?

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'.

How do I change the background color on my monitor?

Select Start > Settings > Personalization > Colors, and then choose your own color, or let Windows pull an accent color from your background.

How do I change the active window?

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.

How do you change the background color on HTML?

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.


2 Answers

Try Yoshida's hiwin-mode (visible active window mode): https://github.com/yoshida-mediba/hiwin-mode

like image 134
semente Avatar answered Sep 30 '22 14:09

semente


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)
like image 38
Nicholas Riley Avatar answered Sep 30 '22 12:09

Nicholas Riley