pass uri for autocmd_run() for mode events