Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs switch to the next window regardless of frame

Tags:

emacs

elisp

I'd like for the C-x o command (next window) to include windows in other frames as well as windows in the current frame.

Does anyone know how to pull this off? Is there another command that I should be using? Is there some snippet of elisp magic that can do this with ease?

like image 398
Moses Avatar asked Jul 27 '12 19:07

Moses


People also ask

How do I switch between windows in Emacs?

To select a different window, click with Mouse-1 on its mode line. With the keyboard, you can switch windows by typing C-x o ( other-window ).

How do I close a split window in Emacs?

You can use the C-x 0 key combination to delete the current window. C-x 0 merges the freed up space with whereever it came from though, but if I want to merge with a specific other window, C-x 0 won't do the job.

What is a window in Emacs?

A window is an area of the screen that can be used to display a buffer (see Buffers). Windows are grouped into frames (see Frames). Each frame contains at least one window; the user can subdivide a frame into multiple, non-overlapping windows to view several buffers at once.


2 Answers

C-x o is other-window. To go to an other frame use C-x 5 o which is other-frame.

like image 188
Nicolas Dudebout Avatar answered Sep 18 '22 00:09

Nicolas Dudebout


Not sure if this is what you mean, but if you want to just cycle through buffers in the buffer list, regardless of frame:

Ctrl x

Ctrl x

These are bound to (next-buffer) and (previous-buffer), respectively.

like image 29
Keith Flower Avatar answered Sep 19 '22 00:09

Keith Flower