Code Monkey home page Code Monkey logo

zygospore's Introduction

zygospore

Introduction

zygospore lets you revert C-x 1 (delete-other-window) by pressing C-x 1 again

Example

Click the gif then select "raw" for fullscreen

demo.gif

Installation

Install from MELPA: M-x package-install RET zygospore RET

Test it out with M-x zygospore-toggle-delete-other-windows RET (twice, on a frame with multiple windows)

To make it permanent, add this line to your init.el:

(global-set-key (kbd "C-x 1") 'zygospore-toggle-delete-other-windows)

Not so useful information

I was inspired by the same functionality that is present out-of-the-box in tmux, and which I use a lot to momentarily "zoom in" on a buffer. Check out my tmux config for the same thing with the same binding in tmux.

Of course it can be replicated by C-x 1 C-c <left arrow> (winner-undo) but why 2 bindings when you could toggle?!

This is my first attempt at making a tidy package for Emacs while providing a hopefully useful command, sorry if you came here looking for a next-gen dynamic language auto-completion ;)

Why zygospore?

From wikipedia:

A zygospore remains dormant while it waits for environmental cues, such as light, moisture, heat, or chemicals secreted by plants. When the environment is favorable, the zygospore germinates, meiosis occurs, and haploid vegetative cells are released.

Ah, sweet poetry of nature.

In Emacs, that means putting the windows displayed in a spore formation to let them return with a subsequent C-x 1 environment (a.k.a "favorable environment).

Thanks

You can now get back to a normal activity

zygospore's People

Contributors

louiskottmann avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.