summaryrefslogtreecommitdiffstats
path: root/lisp/init-ibuffer.el
diff options
context:
space:
mode:
authorMartin Polden <martin.polden@gmail.com>2014-03-26 15:34:34 +0100
committerMartin Polden <martin.polden@gmail.com>2014-03-26 15:40:52 +0100
commitf5ae26ccfa077957dd912f015520470d8467900a (patch)
tree1c2d7b2d62293ae93ea63e1a869e7cd97e6cb4a0 /lisp/init-ibuffer.el
parent3739c077a678c0d78f981bbd930406730878fc54 (diff)
Move ibuffer config to separate file
Diffstat (limited to 'lisp/init-ibuffer.el')
-rw-r--r--lisp/init-ibuffer.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/init-ibuffer.el b/lisp/init-ibuffer.el
new file mode 100644
index 0000000..bf38e9b
--- /dev/null
+++ b/lisp/init-ibuffer.el
@@ -0,0 +1,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)