Take into account the buffer name for enabling modes of interest.