Recipe for minor-mode-hack