I'm trying to execute C-M--
from Emacs on Terminal (iTerm2) running on OSX, but I keep getting an error saying C-M-_ is undefined
. Any ideas how to workaround this?
1 Answer
I eventually got this working by going into iTerm2 preferences and adding a new global shortcut key binding where I entered as Keyboard Shortcut ^⌥-
, chose Action Send Escape Sequence
and just typed -
in the Esc+ field. That seems to do the trick.
Thanks @Gilles and @PythonNut for their help :)
-
If you're satisfied with this answer, could you please accept it so we can mark it as answered?– Dan ♦Oct 4, 2015 at 15:51
M--
works, but makes it a bit awkward for scrolling up on other window. Note that this is Emacs Terminal and henceC-M-S-v
does not work.C-h l
, I seeESC C-_
being printed out when I executeC-M--