# mutt
It's not possible with key bindings. `Ctrl-G` is hardcoded in mutt at a lower level than the macro or keybinding processing (see `mutt_getch()` in mutt's source code, at the core of all user input in mutt that returns an error upon `^G`).
macro editor \e '^G'
wouldn't work either.
What you can do is configure your terminal to send `^G` upon pressing `Escape`
With xterm:
xterm -xrm 'XTerm.VT100.translations: #override
If you're using `screen`, you can also do
screen -X bindkey $'\e' stuff $'\a'
before calling mutt and restore it afterwards (unfortunately, it doesn't seem you can have per screen window key bindings in screen). Also, it's going to be a problem if your editor for email messages is vi.
# neomutt
Since release 20200313 There's `$abort_key` config variable to change the default `Ctrl-G`.