4

I have the following keyboard shortcut in my init.el

(global-set-key (kbd "C-S-<up>") 'move-line-up)

This works great in Cocoa Emacs.app, but when running emacs in console mode in iTerm2 it seems that they keys never make it to emacs.

I tried running the following in emacs

(read-key-sequence "?")

And entering C-S-<up> in the prompt but it was never received. That makes me think that either iTerm2 or zsh is stealing the keystrokes. Any ideas on how to debug this? Or better yet answers?

Michael Hale
  • 1,367
  • 13
  • 16
  • Not really relevant since you don't report this as happening, but Control-Shift- for me triggers a slow-motion transition to Mission Control. – chepner Feb 09 '13 at 16:26
  • Well worth checking that you've switched off all the Mission Control keyboard actions (that you don't want.) – ocodo Feb 10 '13 at 22:24

1 Answers1

1

My guess would be that it's iTerm intercepting things.

You might find this site helpful. It says:

Select Profiles > Open Profiles… from the menu bar, or press Command-O and take a look at the default profile. Click on the Keys section. While you are here verify you have Left Option and Right Option as +Esc.

For the arrow key fixes though you will need to add a series of key shortcuts. The easiest way to get started is select Load Preset… > xterm Defaults

Community
  • 1
  • 1
cyfur01
  • 3,262
  • 1
  • 34
  • 38