remove most magic from minor-mode