Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axgfn/edwina
Dynamic window manager for Emacs – GitHub mirror
https://github.com/axgfn/edwina
emacs
Last synced: 2 months ago
JSON representation
Dynamic window manager for Emacs – GitHub mirror
- Host: GitHub
- URL: https://github.com/axgfn/edwina
- Owner: ajgrf
- License: gpl-3.0
- Created: 2019-08-15T19:57:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T16:10:58.000Z (about 2 years ago)
- Last Synced: 2024-04-09T17:21:31.921Z (10 months ago)
- Topics: emacs
- Language: Emacs Lisp
- Homepage: https://gitlab.com/ajgrf/edwina
- Size: 50.8 KB
- Stars: 147
- Watchers: 10
- Forks: 12
- Open Issues: 12
-
Metadata Files:
- Readme: README.org
- Changelog: CHANGELOG.org
- License: COPYING
Awesome Lists containing this project
README
#+TITLE: Edwina
Edwina is a dynamic window manager for Emacs. It automatically arranges your
Emacs panes (called "windows" in Emacs parlance) into predefined layouts,
[[https://dwm.suckless.org/][dwm]]-style.* Status
Edwina is new and experimental. While it works very well on the subset
of Emacs that I use, you will definitely encounter bugs if you venture
outside of that. Patches welcome!* Installation
** MELPA
After [[https://melpa.org/#/getting-started][enabling installation]] of MELPA
packages, install =edwina= with =M-x package-install=.** Manual
Copy or clone Edwina somewhere on your system:
#+BEGIN_SRC sh
git clone https://gitlab.com/ajgrf/edwina ~/.emacs.d/edwina
#+END_SRCThen add its location to =load-path=:
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path
(expand-file-name "~/.emacs.d/edwina"))
#+END_SRC** use-package
Here's a complete example configuration with =use-package= for reference:
#+BEGIN_SRC emacs-lisp
(use-package edwina
:ensure t
:config
(setq display-buffer-base-action '(display-buffer-below-selected))
(edwina-setup-dwm-keys)
(edwina-mode 1))
#+END_SRC* Usage
Edwina divides the frame into 2 areas, the master area and the stack.
The master area contains the largest window(s), and other windows are
placed in the stack. Edwina tries to place the master area to the
side, but if the frame is too narrow for 2 columns it will put it on
top instead.#+BEGIN_EXAMPLE
+-----------+---------+ +-----------+
| | 1 | | |
| +---------+ | master |
| master | 2 | | |
| +---------+ +-----------+
| | 3 | | 1 |
+-----------+---------+ +-----------+
#+END_EXAMPLEEdwina arranges windows according to just a few parameters: the size
of the master area, the number of windows in master, the order of
windows, and the current layout. By operating on these parameters
instead of manually manipulating individual windows, you can greatly
reduce the effort required to resize and reposition windows.* Key Bindings
By default these keys are prefixed with =C-c C-w=. Customize
=edwina-keymap-prefix= to change the prefix.|-------------------+--------------------------------------|
| Binding | Action |
|-------------------+--------------------------------------|
| =r=, =C-r= | Arrange windows |
| =n=, =C-n=, =SPC= | Move to next window |
| =p=, =C-p= | Move to previous window |
| =N=, =C-S-n= | Swap places with the next window |
| =P=, =C-S-p= | Swap places with the previous window |
| =%=, ={=, =[= | Decrease the size of the master area |
| =^=, =}=, =]= | Increase the size of the master area |
| =d=, =C-d= | Decrease number of windows in master |
| =i= | Increase number of windows in master |
| =k=, =C-k= | Delete window |
| =RET= | Cycle window to/from master area |
| =c=, =C-c= | Clone current window |
|-------------------+--------------------------------------|See also =(edwina-setup-dwm-keys)= to set up alternative dwm-like key
bindings.* Scope
Edwina does not provide workspaces or window rules, instead delegating
such functionality to other plugins and Emacs facilities (like
[[https://github.com/wasamasa/eyebrowse][eyebrowse]]).I recommend setting ~display-buffer~ to open a new window by default,
then defining any exceptions in ~display-buffer-alist~.#+BEGIN_SRC emacs-lisp
(setq display-buffer-base-action '(display-buffer-below-selected))
#+END_SRC