Skip to content

An Emacs mode adding numeric window switching shortcuts

Notifications You must be signed in to change notification settings

luismbo/wn-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

MELPA Stable MELPA

wn-mode

This library defines a global minor mode called wn-mode that adds keyboard shortcuts to quickly switch between visible windows within the current Emacs frame.

Install it via MELPA with:

M-x package-install RET wn-mode RET

To activate, simply add

(wn-mode)

to your ~/.emacs.

By default, the shortcuts are M-1, ..., M-9 for selecting windows #1 through #9. M-0 selects the minibuffer, if active. M-# interactively asks which window to select.

With a prefix argument, swaps the buffers between the current and target windows.

Customize wn-keybinding-format if you wish to use different key bindings, e.g.:

(setq wn-keybinding-format "C-c %s")

Re-enable wn-mode and the new keybindings will take effect.

About

An Emacs mode adding numeric window switching shortcuts

Resources

Stars

Watchers

Forks

Packages

No packages published