settings: fix maximum line width
settings: use regexes for local settings