When I program I use two screens with Emacs on both with two buffers split in each window totaling 4 open source files on screen at any one time.
I switch between buffers with C-x b
and between Windows with Alt-TAB
. I change the appearance of buffers when I switch between them by defining different faces for mode-line
and mode-line-inactive
. But how do I inactivate a buffer when I switch from the Emacs window completely to another Emacs window via Alt-TAB
?
It's probably also relevant that I'm using Emacs 23.2.1 on Ubuntu 11.04 with Gnome 2.32.1.
PS: The question How to automatically save files on lose focus in Emacs is after a different goal but with the same original event of "window losing focus".