On 6 Jul 2016, at 17:25, Allan Odgaard wrote:

The gotcha here is that a scoped setting (like `text.xml`) takes precedence over a file pattern match (like `*.xml`), even when the latter is “more local” (in the file system).

Just a correction, the precedence is file patterns (globs) → scopes → untargeted settings.

The file patterns are ranked based on locality where the scope selectors are ranked based on how much of the scope they match, e.g. a global text.plain wins over a local text, and finally the untargeted settings are ranked based on locality (like the file patterns).

It should probably just be intermixed, so a local untargeted setting wins over less local but targeted settings.