reimplement as a global minor-mode.

resolves #4.