summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ravi-init-ido.el16
1 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ravi-init-ido.el b/lisp/ravi-init-ido.el
index 93af3e6..0997bd4 100644
--- a/lisp/ravi-init-ido.el
+++ b/lisp/ravi-init-ido.el
@@ -32,9 +32,8 @@
(progn
(use-package ibuffer-vc
- :ensure t
:commands ibuffer-vc-set-filter-groups-by-vc-root
- )
+ :ensure t)
;; Switching to ibuffer puts the cursor on the most recent past buffer
(defadvice ibuffer (around ibuffer-point-to-most-recent-but-one activate) ()
@@ -43,6 +42,19 @@
ad-do-it
(ibuffer-jump-to-buffer recent-buffer-name)))
+ ;; Show version control status in ibuffer
+ (setq ibuffer-formats
+ '((mark modified read-only vc-status-mini " "
+ (name 18 18 :left :elide)
+ " "
+ (size 9 -1 :right)
+ " "
+ (mode 16 16 :left :elide)
+ " "
+ (vc-status 16 16 :left)
+ " "
+ filename-and-process)))
+
(defun ravi/ibuffer-vc-sort-hook ()
(ibuffer-vc-set-filter-groups-by-vc-root)
(unless (eq ibuffer-sorting-mode 'alphabetic)