doomemacs/modules/ui/window-select
Henrik Lissner 76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
..
config.el 💥 Rename def-package! -> use-package! 2019-07-23 12:50:45 +02:00
packages.el
README.org

ui/window-select

Description

This module provides several methods for selecting windows without the use of the mouse or spatial navigation (e.g. C-w {h,j,k,l}). The command other-window is remapped to either switch-window or ace-window, depending on which backend you've enabled.

other-window is bound to C-x o and SPC w o.

It also provides numbered windows and selection with the winum package, if desired. Evil users can jump to window N in C-w <N> (where N is a number between 0 and 9). Non evil users have C-x w <N> instead.

Module Flags

  • +switch-window Use the switch-window package as the backend, instead of ace-window (avy).
  • +numbers Enable numbered windows and window selection (using winum).

Packages

Prerequisites

This module has no additional dependencies.

TODO Features

Configuration

This module provides two backends, both providing the same functionality, but with different visual cues. They are ace-window and switch-window.

ace-window

The first character of the buffers changes to a highlighted, user-selectable character.

  • Pros: the content of the buffers are always visible.
  • Cons: The displayed characters are small and difficult to see.

switch-window

Replaces the entire buffer with large letters.

  • Pros: The displayed characters are really easy to see.
  • Cons: You can't see the contents of the buffers.