Run this:
mkdir -p ~/iterm2
cat > ~/iterm2/emacs-navigation.itermkeymap <<'EOF'
{
"Key Mappings": {
"0xf702-0x300000-0x7b": { "Label": "Cursor Start ⌘←", "Action": 11, "Text": "0x01" },
"0xf703-0x300000-0x7c": { "Label": "Cursor End ⌘→", "Action": 11, "Text": "0x05" },
"0xf702-0x280000-0x7b": { "Label": "Word Left ⌥←", "Action": 11, "Text": "0x1b 0x62" },
"0xf703-0x280000-0x7c": { "Label": "Word Right ⌥→", "Action": 11, "Text": "0x1b 0x66" }
}
}
EOF
open -R ~/iterm2/emacs-navigation.itermkeymap # didn't work out, but proceed to the next step
Import:
iTerm2 → Preferences → Profiles → (your profile) → Keys → Key Mappings → Presets… → Import… → pick that .itermkeymap.