Setting the `mime_map_patterns` option in TracIni can be achieved like this:
{{{
[mimeviewer]
mime_map_patterns = text/x-kconfig:.*Config.in.*|external.in.*|standard-modules.in,text/x-cmake:CMakeLists\.txt
}}}
Initial changes contributed by Alexander Kriegisch on #10437.