call autocmds on mode enter/leave