Move the `(setq byte-compile--use-old-handlers …)` to a function.
Disable `electric-indent-mode`.