26 lines
805 B
EmacsLisp
26 lines
805 B
EmacsLisp
;;; ibuffer --- improved buffer management -*- lexical-binding: t; -*-
|
|
;;; Commentary: buffer is an advanced replacement for BufferMenu, which lets you operate on buffers much in the same manner as Dired.
|
|
;;; Code:
|
|
|
|
(defun user--ibuffer-hook ()
|
|
"Hook for improved buffer."
|
|
(ibuffer-vc-set-filter-groups-by-vc-root)
|
|
(unless (eq ibuffer-sorting-mode 'filename/process)
|
|
(ibuffer-do-sort-by-filename/process)))
|
|
|
|
(use-package ibuffer
|
|
:bind* (([remap list-buffers] . ibuffer))
|
|
:init
|
|
(add-hook 'ibuffer-hook 'user--ibuffer-hook)
|
|
:config
|
|
(validate-setq
|
|
ibuffer-filter-group-name-face 'font-lock-doc-face)
|
|
;; https://github.com/purcell/ibuffer-vc
|
|
;; Group buffers in ibuffer list by VC project
|
|
(use-package ibuffer-vc
|
|
:defer))
|
|
|
|
|
|
(provide 'utilities/ibuffer)
|
|
;;; ibuffer.el ends here
|