diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2015-06-17 04:38:30 (GMT) |
|---|---|---|
| committer | Ravi R Kiran <aine.marina@gmail.com> | 2015-06-17 04:38:30 (GMT) |
| commit | d0240c9f8cd1a5880d08755fb08203ca8beff800 (patch) | |
| tree | 4d0f03f163dbb65b22d9d869a41b2cff9a8ea1a6 /lisp/ravi-init-ido.el | |
| parent | e7f577c0ebbb3740d15f80345cb23f0a94cfe5f0 (diff) | |
| download | dotemacs-d0240c9f8cd1a5880d08755fb08203ca8beff800.zip dotemacs-d0240c9f8cd1a5880d08755fb08203ca8beff800.tar.gz dotemacs-d0240c9f8cd1a5880d08755fb08203ca8beff800.tar.bz2 | |
Show vc status in ibuffer
Diffstat (limited to 'lisp/ravi-init-ido.el')
| -rw-r--r-- | lisp/ravi-init-ido.el | 16 |
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) |
