clean minor mode definiton