mode: Extract toggle-mode from define-or-undefine-command-for-mode.
mode: Extract toggle-mode from define-or-undefine-command-for-mode.

This rids us of some code generation.

jmercouris/NeXT,jmercouris/NeXT