summaryrefslogtreecommitdiffstats
path: root/lisp/init-ibuffer.el
blob: bf38e9b255e3aa3a484e24aa84ec9a5f93dd6465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;; install package
(require-package 'ibuffer-vc)

;; load ibuffer and ibuffer-vc
(require 'ibuffer)
(require 'ibuffer-vc)

;; group ibuffer by repository root
(add-hook 'ibuffer-hook
          (lambda () (ibuffer-vc-set-filter-groups-by-vc-root)))

;; use ibuffer
(global-set-key (kbd "C-x C-b") 'ibuffer-other-window)

(provide 'init-ibuffer)