2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: IBuffer layer
|
2016-03-31 02:59:55 +00:00
|
|
|
|
|
|
|
* Table of Contents :TOC_4_gh:noexport:
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#description][Description]]
|
2017-10-01 13:06:53 +00:00
|
|
|
- [[#features][Features:]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#grouping-buffers][Grouping buffers]]
|
|
|
|
- [[#key-bindings][Key bindings]]
|
|
|
|
- [[#global][Global]]
|
|
|
|
- [[#ibuffer][IBuffer]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
2016-11-04 10:29:22 +00:00
|
|
|
This layer configures Emacs IBuffer for Spacemacs.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2017-10-01 13:06:53 +00:00
|
|
|
** Features:
|
|
|
|
- Grouping of buffers by major-modes
|
|
|
|
- Grouping of buffers by projects
|
|
|
|
|
2015-06-10 16:44:30 +00:00
|
|
|
* Install
|
2016-01-06 05:21:55 +00:00
|
|
|
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
|
2015-06-10 21:16:01 +00:00
|
|
|
=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
|
2016-11-04 10:29:22 +00:00
|
|
|
** Global
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2017-04-25 15:42:58 +00:00
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+----------------------------|
|
2017-06-12 10:48:00 +00:00
|
|
|
| ~SPC b I~ | open IBuffer menu (global) |
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2016-11-04 10:29:22 +00:00
|
|
|
*Note:* The layer will also replace regular ~C-x C-b~ with =ibuffer=.
|
|
|
|
|
|
|
|
** IBuffer
|
|
|
|
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+-------------------------------|
|
|
|
|
| ~g r~ | update IBuffer ("refresh") |
|
|
|
|
| ~g j~ | move to next filter group |
|
|
|
|
| ~g k~ | move to previous filter group |
|