spacemacs/layers/+emacs/ibuffer/README.org

46 lines
1.3 KiB
Org Mode
Raw Normal View History

#+TITLE: IBuffer layer
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../css/readtheorg.css" />
2015-06-10 16:44:30 +00:00
* Table of Contents :TOC_4_org:noexport:
- [[Description][Description]]
- [[Install][Install]]
- [[Layer][Layer]]
- [[Grouping buffers][Grouping buffers]]
- [[Key bindings][Key bindings]]
2015-06-10 16:44:30 +00:00
* Description
This layer configures Emacs ibuffer for Spacemacs.
* Install
** Layer
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.
2015-06-10 16:44:30 +00:00
** 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:
2015-06-10 16:44:30 +00:00
- =modes= to group buffers by major-modes (default)
- =projects= to group buffers by projectile projects
- =nil= to not group buffers
Example:
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(
(ibuffer :variables ibuffer-group-buffers-by 'projects)))
#+END_SRC
* Key bindings
| Key Binding | Description |
|-------------+-------------------|
| ~SPC b B~ | open ibuffer menu |
*Note:* The layer will also replace regular ~C-x C-b~ by ibuffer.