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: 2 months ago
JSON representation
Rotate the layout of emacs.
- Host: GitHub
- URL: https://github.com/daichirata/emacs-rotate
- Owner: daichirata
- Created: 2013-03-17T12:30:34.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-09-22T08:06:01.000Z (over 2 years ago)
- Last Synced: 2024-08-05T06:06:19.631Z (6 months ago)
- Topics: emacs, emacs-lisp, emacs-rotate, window-manager
- Language: Emacs Lisp
- Size: 690 KB
- Stars: 78
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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.