emacs: refactor less-minor-mode recipe