add remember-major-modes-mode