Fixed quirks in esc-mode-hook