This question is a follow-up to this answer (q.v.).
I understand that Emacs interprets esc as M-
only when the keystroke that follows it corresponds to a "character" (e.g. A, 5, ;, etc.), as opposed to, e.g., ←, F5, home, etc.
What can I add to my .emacs
file to extend the esc ⇒ M-
interpretation to the case where the following key is a "non-character" key?
FWIW, at the moment, I am particularly interested in implementing the translations
esc → ⇒ M-<right>
esc ← ⇒ M-<left>
esc ↑ ⇒ M-<up>
esc ↓ ⇒ M-<down>
esc shift+→ ⇒ M-S-<right>
esc shift+← ⇒ M-S-<left>
esc shift+↑ ⇒ M-S-<up>
esc shift+↓ ⇒ M-S-<down>