set autocmd mask in mode struct constructor