Turn global options into buffer- or window-local ones.