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?
Asked
Active
Viewed 482 times
2

Gilles 'SO- stop being evil'
- 22,318
- 4
- 56
- 92

Galder Zamarreño
- 1,537
- 2
- 12
- 21
1 Answers
0
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 :)

Galder Zamarreño
- 1,537
- 2
- 12
- 21
-
If you're satisfied with this answer, could you please accept it so we can mark it as answered? – Dan Oct 04 '15 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. – Galder Zamarreño Jul 03 '15 at 18:11C-h l
, I seeESC C-_
being printed out when I executeC-M--
– Galder Zamarreño Aug 04 '15 at 11:36