Use `setq-local` instead of `make-local-variable` and `setq`.