Steven Degutis <sbdegutis@gmail.com> writes:A minor mode is how this kind of features are usually implemented on
> Can minor modes be enabled/disabled on a per-window basis? If not, I think
> this doesn't solve the problem.
Emacs. Functionally, it is no better than your current approach based on
functions for enabling and disabling. Sorry for the confussion.