Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to pass a certain M-key combination to the OS? I'm using OSX and I'd like to have the "Move focus to next window in application" key which I use to work also in Emacs, currently it just says that M- is undefined (the key combo works in other apps, I use CMD as meta).

share|improve this question

I found a way to switch between the frames with the same command as I have configured OSX to use (CMD-§).

I just added this to init.el:

(global-set-key (kbd "M-§") 'other-frame)

So I don't need to "pass this" to OS, because this will have the exact same effect.

share|improve this answer
The problem with this solution is when I have multiple spaces: OSX behaviour is that Cmd+` (or cmd+§) cycles through open windows in the same space. If I have Emacs frames open on different spaces, other-frame command cycles through all of them, switching spaces as needed. – Maciej Pasternacki Apr 14 '12 at 10:02
What if you don't want to go to another emacs frame, but just want to move to the next app. – justingordon Aug 10 '12 at 8:40

Are you talking about using CMD-~? If so, emacs has similar functionality with the following keystrokes:

C-x <LEFT>
Select the previous buffer in the list of existing buffers. 
Select the next buffer in the list of existing buffers.

See how to change buffers in the documentation. FWIW, C-h a will let you search the help system for any keywords you'd like.

share|improve this answer
My question is a bit unclear: I meant frames not buffers. Anyway, I found an alternative way (see my own answer :) – auramo Sep 30 '10 at 7:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .