InsertChar for a specific filetype

You can copy this pattern from crystal.kak:

hook global WinSetOption filetype=elm %{
  map window insert <tab> ''
  hook -always -once window WinSetOption filetype=.* %{
    unmap window insert <tab>
  }
}