Add BufEnter event for filetype detection.