add basic support for per-filetype config