auramo
auramo

Reputation: 13357

Emacs, switching to another frame (Mac OS X)

I can switch between windows with "C-x o", but if I have opened multiple frames, can I move between them without the mouse as well?

I just realized that the question probably sounds braindead without this detail: I'm on Mac OS X (Finnish keyboard) and switching between windows of the same application is difficult.

Upvotes: 34

Views: 18330

Answers (6)

John Newlin
John Newlin

Reputation: 261

Put this in your .emacs

(global-set-key "\M-`" 'other-frame)

Then you can do Command-` to switch between emacs frames.

Upvotes: 26

Trey Jackson
Trey Jackson

Reputation: 74430

I recently answered a similar question on SuperUser. There's a new package called framemove.el, which lets you easily switch frames using the arrow keys (with a prefix key like shift or meta).

To install:

(require 'framemove)
(framemove-default-keybindings) ;; default prefix is Meta

Upvotes: 9

Andrew Stein
Andrew Stein

Reputation: 13140

I use M-x next-multiframe-window (bound to a key of course). Better IMHO than M-x other-frame (C-x 5 o).

next-multiframe-window steps thorough the windows of each frame. other-frame toggles just steps through the frames (like ALT-TAB)

Upvotes: 10

Tomasz Tybulewicz
Tomasz Tybulewicz

Reputation: 8647

From manual the answer is "C-x 5 o" (but read the fine print at the and - about variable focus-follows-mouse)

Upvotes: 4

Nicholas Riley
Nicholas Riley

Reputation: 44321

If you want an Emacs-centric method, try C-x 5 o.

Upvotes: 38

Hortitude
Hortitude

Reputation: 14058

I believe you can switch between frames the same way you switch between applications.

On Windows I use Alt-TAB, on Unix I have my machine setup to use Ctrl-Alt-TAB

Upvotes: 0

Related Questions