I'm able to use emacs in the terminal with the left command key as the emacs meta key by 1) having left option send Esc+ in Profiles -> Keys -> General and 2) making left command send left option in Keys -> Remap Modifiers.
But what I would like is to have left command mapped to left option on a per-profile basis, so that I could press a key to switch to a profile that had this configuration, or use the automatic profile switching settings. This would allow me to use the command key as normal outside of emacs (i.e. I want to press Cmd+C to copy outside of emacs, not Option+C), but still get the behavior I want when running emacs.
I figure there's probably a reason why remapping of the modifier keys isn't already a per-profile setting, but I couldn't find any discussion around this. Is there any workaround to achieve what I want?