diff options
author | Martin Polden <martin.polden@gmail.com> | 2017-05-25 23:32:26 +0200 |
---|---|---|
committer | Martin Polden <martin.polden@gmail.com> | 2017-05-25 23:32:26 +0200 |
commit | ae104192bfa31ef3d35233ca87d12502580e0a85 (patch) | |
tree | ad1fd88264186522081f8fe87673f38aab5c4f23 /lisp/init-ibuffer.el | |
parent | d836253c771b476a6cc97b9292f11a852a52c7ab (diff) |
Replace ibuffer-vc with ibuffer-projectile
ibuffer-vc combined with ibuffer-auto-mode seems to be a CPU hog.
Diffstat (limited to 'lisp/init-ibuffer.el')
-rw-r--r-- | lisp/init-ibuffer.el | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/init-ibuffer.el b/lisp/init-ibuffer.el index fc29fd6..fbc2b8d 100644 --- a/lisp/init-ibuffer.el +++ b/lisp/init-ibuffer.el @@ -12,7 +12,6 @@ (setq ibuffer-show-empty-filter-groups nil) ;; use ibuffer - :bind (("C-x C-b" . ibuffer-other-window) :map ibuffer-mode-map ;; make C-o and o behave as in dired @@ -20,12 +19,9 @@ ("C-o" . ibuffer-visit-buffer-other-window-noselect)) :config - ;; keep buffer list up to date and group ibuffer by repository root - (add-hook 'ibuffer-hook - (lambda () - (ibuffer-auto-mode 1) - (ibuffer-vc-set-filter-groups-by-vc-root)))) + ;; group ibuffer by projectile project + (add-hook 'ibuffer-hook 'ibuffer-projectile-set-filter-groups)) -(use-package ibuffer-vc) +(use-package ibuffer-projectile) (provide 'init-ibuffer) |