Rotate the layout of emacs.
Emacs Lisp
Latest commit 091b5ac Sep 9, 2016 @daichirata committed on GitHub Merge pull request #5 from daichirata/feature/readme
Add melpa badge to README.md
Permalink
Failed to load latest commit information.
image add screenshot Jan 24, 2014
.gitignore initial commit Mar 17, 2013
README.md Add melpa badge to README.md Sep 9, 2016
rotate.el change username to daichirata Sep 9, 2016

README.md

emacs-rotate.el

MELPA

What's it

This package will help the operation for the multiple windows.

Behavior has been prepared with reference to tmux.

Basic Usage

rotate-window

Rotate the positions of the window.

rotate-window

emacs-rotate

rotate-layout

Move a window to the next layout and rearrange the window to fit.

rotate-layout 2 windows

emacs-rotate

rotate-layout 4 windows

emacs-rotate

Customize Variables

rotate-functions

Default value is

'(rotate:even-horizontal
  rotate:even-vertical
  rotate:main-horizontal
  rotate:main-vertical
  rotate:tiled)

A number of preset layouts are available. These may be selected with the rotate-layout command or cycled with next-layout; once a layout is chosen, window within it may be moved and resized as normal.

By replacing this value, you can circulate freely.

Preset layouts

The following layouts are supported:

rotate:even-horizontal

Spread out evenly from left to right across the window.

rotate:even-vertical

Spread evenly from top to bottom.

rotate:main-horizontal

A large (main) window is shown at the top of the window and the remaining windows are spread from left to right in the leftover space at the bottom.

rotate:main-vertical

Similar to main-horizontal but the large window is placed on the left and the others spread from top to bottom along the right.

rotate:tiled

Spread out as evenly as possible over the window in both rows and columns.