Use setq-local where applicable
Revert "Use setq-local where applicable"

This reverts commit 2ecb5fcbcbc9f1220841ef84771028d5b3f5e8e9.