]> saetta.ns0.it Git - msys2/commitdiff
Aggiornato emacs_linux: ibuffer-vc.
authorAndrea Zagli <azagli@libero.it>
Mon, 6 Mar 2017 11:22:22 +0000 (12:22 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 6 Mar 2017 11:22:22 +0000 (12:22 +0100)
tools/emacs_linux

index 65ef7a8492f5926a36fcf961fb932f159f274400..2407770c6d5051e789a609381cab37209ce32349 100644 (file)
   (global-diff-hl-mode)
   (add-hook 'dired-mode-hook 'diff-hl-dired-mode))
 
+;; ibuffer-vc
+(use-package ibuffer-vc
+  :ensure t
+  :config
+  (add-hook 'ibuffer-hook
+                       (lambda ()
+                         (ibuffer-vc-set-filter-groups-by-vc-root)
+                         (unless (eq ibuffer-sorting-mode 'alphabetic)
+                               (ibuffer-do-sort-by-alphabetic)))))
+
 ;; C environment
 
 ;; flycheck