Home

Awesome

melpa badge melpa stable badge

zoom-window.el

CI

Introduction

zoom-window provides window zoom like tmux zoom and unzoom.

Screenshot

Screenshot of zoom-window.el

Background color of mode-line is changed when zoomed

Requirements

zoom-window.el supports elscreen and persp-mode.

Features

Installation

zoom-window is available on MELPA and MELPA stable

You can install zoom-window with the following command.

<kbd>M-x package-install [RET] zoom-window [RET]</kbd>

Basic Usage

zoom-window-zoom

Toggle between zooming current window and unzooming

zoom-window-next

Switch to next buffer which is in zoomed frame/screen/perspective.

Customization

zoom-window-mode-line-color(Default is "green")

Color of mode-line when zoom-window is enabled

zoom-window-use-elscreen(Default is nil)

Set non-nil if you use elscreen

zoom-window-use-persp(Default is nil)

Set non-nil if you use persp-mode

Example

(require 'zoom-window)
(global-set-key (kbd "C-x C-z") 'zoom-window-zoom)
(custom-set-variables
 '(zoom-window-mode-line-color "DarkGreen"))

zoom-window with elscreen

(require 'elscreen)
(elscreen-start)

(require 'zoom-window)
(setq zoom-window-use-elscreen t)
(zoom-window-setup)

(global-set-key (kbd "C-x C-z") 'zoom-window-zoom)

zoom-window with persp-mode

(with-eval-after-load "persp-mode-autoloads"
  (add-hook 'after-init-hook #'(lambda () (persp-mode 1))))

(require 'zoom-window)
(custom-set-variables
 '(zoom-window-use-persp t))
(zoom-window-setup)

(global-set-key (kbd "C-x C-z") 'zoom-window-zoom)