Add the possibility to set different preferences for different file types.
On file extensions or glob patterns.

This should include all settings like activating a plugin or having a preprocess pattern.