File: ibuffer.el.html

Ibuffer is an advanced replacement for the buffer-menu which is distributed with Emacs. It lets you operate on buffers in a Dired-like way, with the ability to sort, mark by regular expression, and filter displayed buffers by various criteria. Its interface is intended to be analogous to that of Dired.

To start using it, type M-x ibuffer. If you use it regularly, you might be interested in replacing the default list-buffers key binding by adding the following to your init file:

    (keymap-global-set "C-x C-b" 'ibuffer)

See also the various customization options, not least the documentation for ibuffer-formats.

For more help, type ? in the "*Ibuffer*" buffer.

Defined variables (45)

ibuffer-always-compile-formatsIf non-nil, then use the byte-compiler to optimize ‘ibuffer-formats’.
ibuffer-always-show-last-bufferIf non-nil, always display the previous buffer.
ibuffer-case-fold-searchIf non-nil, ignore case when searching.
ibuffer-compressed-file-name-regexpRegexp to match compressed file names.
ibuffer-default-directoryThe default directory to use for a new Ibuffer buffer.
ibuffer-default-display-maybe-show-predicatesNon-nil means show buffers that match ‘ibuffer-maybe-show-predicates’.
ibuffer-default-shrink-to-minimum-sizeIf non-nil, minimize the size of the Ibuffer window by default.
ibuffer-default-sorting-modeThe criteria by which to sort the buffers.
ibuffer-default-sorting-reversepIf non-nil, reverse the default sorting order.
ibuffer-deletion-charThe character to display for buffers marked for deletion.
ibuffer-deletion-faceFace used for displaying buffers marked for deletion.
ibuffer-directory-abbrev-alistAn alist of file name abbreviations like ‘directory-abbrev-alist’.
ibuffer-display-summaryIf non-nil, summarize Ibuffer columns.
ibuffer-eliding-stringThe string to use for eliding long columns.
ibuffer-expertIf non-nil, don’t ask for confirmation of "dangerous" operations.
ibuffer-filter-group-name-faceFace used for displaying filtering group names.
ibuffer-fontification-alistAn alist describing how to fontify buffers.
ibuffer-formatsA list of ways to display buffer lines.
ibuffer-help-buffer-modesList of "Help" major modes.
ibuffer-hookHook run when ‘ibuffer’ is called.
ibuffer-human-readable-sizeShow buffer sizes in human-readable format.
ibuffer-jump-offer-only-visible-buffersIf non-nil, only offer buffers visible in the Ibuffer buffer
ibuffer-load-hookHook run when Ibuffer is loaded.
ibuffer-locked-charThe character to display for locked buffers.
ibuffer-marked-charThe character to display for marked buffers.
ibuffer-marked-faceFace used for displaying marked buffers.
ibuffer-maybe-show-predicatesA list of predicates for buffers to display conditionally.
ibuffer-mode-abbrev-tableAbbrev table for ‘ibuffer-mode’.
ibuffer-mode-groups-popupMenu for ‘ibuffer’.
ibuffer-mode-hookHook run upon entry into ‘ibuffer-mode’.
ibuffer-mode-mapKeymap for ‘ibuffer-mode’.
ibuffer-mode-mark-menuMark menu for ‘ibuffer’.
ibuffer-mode-operate-mapOperate menu for ‘ibuffer’.
ibuffer-mode-operate-menuOperate menu for ‘ibuffer’.
ibuffer-mode-syntax-tableSyntax table for ‘ibuffer-mode’.
ibuffer-mode-view-menuView menu for ‘ibuffer’.
ibuffer-modified-charThe character to display for modified buffers.
ibuffer-movement-cycleIf non-nil, then forward and backwards movement commands cycle.
ibuffer-read-only-charThe character to display for read-only buffers.
ibuffer-sorting-functions-alistAn alist of functions which describe how to sort buffers.
ibuffer-title-faceFace used for the title string.
ibuffer-truncate-linesIf non-nil, do not display continuation lines.
ibuffer-use-header-lineIf non-nil, display a header line.
ibuffer-use-other-windowIf non-nil, display Ibuffer in another window by default.
ibuffer-view-ibufferIf non-nil, display the current Ibuffer buffer itself.

Defined functions (92)

ibuffer(&optional OTHER-WINDOW-P NAME QUALIFIERS NOSELECT SHRINK FILTER-GROUPS FORMATS)
ibuffer--abbreviate-file-name(FILENAME)
ibuffer--format-summary(ELEMENT)
ibuffer--format-title(ELEMENT &optional HEADER-LINE)
ibuffer--near-buffers(N)
ibuffer-backward-line(&optional ARG SKIP-GROUP-NAMES)
ibuffer-buf-matches-predicates(BUF PREDICATES)
ibuffer-buffer-name-face(BUF MARK)
ibuffer-buffer-names-with-mark(MARK)
ibuffer-bury-buffer()
ibuffer-change-marks(&optional OLD NEW)
ibuffer-clear-summary-columns(FORMAT)
ibuffer-columnize-and-insert-list(LIST &optional PAD-WIDTH)
ibuffer-compile-format(FORMAT)
ibuffer-compile-make-eliding-form(STRVAR ELIDE FROM-END-P)
ibuffer-compile-make-format-form(STRVAR WIDTHFORM ALIGNMENT)
ibuffer-compile-make-substring-form(STRVAR MAXVAR FROM-END-P)
ibuffer-confirm-operation-on(OPERATION NAMES)
ibuffer-count-marked-lines(&optional ALL)
ibuffer-current-buffer(&optional MUST-BE-LIVE)
ibuffer-current-buffers-with-marks(CURBUFS)
ibuffer-current-format(&optional UNCOMPILEDP)
ibuffer-current-formats(UNCOMPILEDP)
ibuffer-current-state-list(&optional POS)
ibuffer-customize()
ibuffer-do-delete()
ibuffer-do-kill-on-deletion-marks()
ibuffer-do-save()
ibuffer-do-sort-by-recency()
ibuffer-do-toggle-lock(&optional ARG)
ibuffer-do-toggle-modified()
ibuffer-do-toggle-read-only(&optional ARG)
ibuffer-do-view(&optional OTHER-FRAME)
ibuffer-do-view-1(TYPE)
ibuffer-do-view-horizontally(&optional OTHER-FRAME)
ibuffer-do-view-other-frame()
ibuffer-expand-format-entry(FORM)
ibuffer-filter-buffers(IBUFFER-BUF LAST BMARKLIST ALL)
ibuffer-find-file(FILE &optional WILDCARDS)
ibuffer-format-column(STR WIDTH ALIGNMENT)
ibuffer-forward-line(&optional ARG SKIP-GROUP-NAMES)
ibuffer-get-marked-buffers()
ibuffer-insert-buffer-line(BUFFER MARK FORMAT)
ibuffer-insert-filter-group(NAME DISPLAY-NAME FILTER-STRING FORMAT BMARKLIST)
ibuffer-jump(&optional OTHER-WINDOW)
ibuffer-list-buffers(&optional FILES-ONLY)
ibuffer-make-column-filename(BUFFER MARK)
ibuffer-make-column-filename-and-process(BUFFER MARK)
ibuffer-make-column-process(BUFFER MARK)
ibuffer-map-deletion-lines(FUNC)
ibuffer-map-lines(FUNCTION &optional NOMODIFY GROUP)
ibuffer-map-lines-nomodify(FUNCTION)
ibuffer-map-marked-lines(FUNC)
ibuffer-map-on-mark(MARK FUNC)
ibuffer-mark-for-delete(START END ARG)
ibuffer-mark-for-delete-backwards(ARG)
ibuffer-mark-forward(START END ARG)
ibuffer-mark-interactive(ARG MARK &optional MOVEMENT)
ibuffer-mark-region-or-n-with-char(START END ARG MARK-CHAR)
ibuffer-mode()
ibuffer-mode--groups-menu-definition(&optional IS-POPUP)
ibuffer-mode-groups-popup(ARG1)
ibuffer-mode-mark-menu(ARG1)
ibuffer-mode-operate-menu(ARG1)
ibuffer-mode-view-menu(ARG1)
ibuffer-mouse-popup-menu(EVENT)
ibuffer-mouse-toggle-mark(EVENT)
ibuffer-mouse-visit-buffer(EVENT)
ibuffer-other-window(&optional FILES-ONLY)
ibuffer-recompile-formats()
ibuffer-redisplay(&optional SILENT)
ibuffer-redisplay-engine(BMARKLIST &optional IGNORE)
ibuffer-set-mark(MARK)
ibuffer-set-mark-1(MARK)
ibuffer-shrink-to-fit(&optional OWIN)
ibuffer-skip-properties(PROPS DIRECTION)
ibuffer-sort-bufferlist(BMARKLIST)
ibuffer-switch-format()
ibuffer-toggle-marks(&optional GROUP)
ibuffer-unmark-all(MARK)
ibuffer-unmark-all-marks()
ibuffer-unmark-backward(START END ARG)
ibuffer-unmark-forward(START END ARG)
ibuffer-update(ARG &optional SILENT)
ibuffer-update-title-and-summary(FORMAT)
ibuffer-visible-p(BUF ALL &optional IBUFFER-BUF)
ibuffer-visit-buffer(&optional SINGLE)
ibuffer-visit-buffer-1-window()
ibuffer-visit-buffer-other-frame()
ibuffer-visit-buffer-other-window(&optional NOSELECT)
ibuffer-visit-buffer-other-window-noselect()
ibuffer-visit-tags-table()

Defined faces (5)

ibuffer-deletionFace used by default in ‘ibuffer-deletion-face’.
ibuffer-filter-group-nameFace used by default in ‘ibuffer-filter-group-name-face’.
ibuffer-locked-bufferFace used for locked buffers in Ibuffer.
ibuffer-markedFace used by default in ‘ibuffer-marked-face’.
ibuffer-titleFace used by default in ‘ibuffer-title-face’.