Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/daichirata/emacs-rotate

Rotate the layout of emacs.
https://github.com/daichirata/emacs-rotate

emacs emacs-lisp emacs-rotate window-manager

Last synced: 3 months ago
JSON representation

Rotate the layout of emacs.

Lists

README

        

# emacs-rotate.el

[![MELPA](https://melpa.org/packages/rotate-badge.svg)](https://melpa.org/#/rotate)

## 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](image/rotate-window.gif)

#### `rotate-layout`

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

**rotate-layout** 2 windows

![emacs-rotate](image/rotate-layout-2.gif)

**rotate-layout** 4 windows

![emacs-rotate](image/rotate-layout-4.gif)

## 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.