This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+emacs/ibuffer
duianto eebc238803 Add ibuffer square brackets filter group motion
Match the magit buffer section/sibling navigation keys (bound in evil-magit) and
the evil-collections motion section also suggests using [ and ] for navigation
between sections.

And list the default ibuffer filter group motion bindings:
Forward: TAB and M-n
Backward: S-TAB and M-p
2019-04-21 00:02:50 +02:00
..
config.el Happy New Year 2018! 2018-01-04 02:00:25 -05:00
funcs.el Happy New Year 2018! 2018-01-04 02:00:25 -05:00
packages.el Add ibuffer square brackets filter group motion 2019-04-21 00:02:50 +02:00
README.org Add ibuffer square brackets filter group motion 2019-04-21 00:02:50 +02:00

IBuffer layer

Description

This layer configures Emacs IBuffer for Spacemacs.

Features:

  • Grouping of buffers by major-modes
  • Grouping of buffers by projects

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add ibuffer to the existing dotspacemacs-configuration-layers list in this file.

Grouping buffers

Buffers can be grouped by major-modes or projectile projects. By default buffers are grouped by major-modes.

To change how buffers are grouped set the layer variable ibuffer-group-buffers-by to one of the following supported values:

  • modes to group buffers by major-modes (default)
  • projects to group buffers by projectile projects
  • nil to not group buffers

Example:

  (setq-default dotspacemacs-configuration-layers '(
    (ibuffer :variables ibuffer-group-buffers-by 'projects)))

Key bindings

Global

Key binding Description
SPC b I open IBuffer menu (global)

Note: The layer will also replace regular C-x C-b with ibuffer.

IBuffer

Key binding Description
g r update IBuffer (“refresh”)
g j / ] / TAB / M-n move to next filter group
g k / [ / S-TAB / M-p move to previous filter group