add autocmd events to mode definitions