    ((> (buffer-size) 1000) (format "%7.1fk" (/ (buffer-size) 1000.0)))
    (t (format "%8d" (buffer-size)))))
 ;; Modify the default ibuffer-formats
-  (setq ibuffer-formats
-	'((mark modified read-only git-status-mini " "
-		(name 18 18 :left :elide)
-		" "
-		(size-h 9 -1 :right)
-		" "
-		(mode 16 16 :left :elide)
-		" "
-		filename-and-process)))
+(setq ibuffer-formats
+      '((mark modified read-only git-status-mini " "
+	      (name 18 18 :left :elide)
+	      " "
+	      (size-h 9 -1 :right)
+	      " "
+	      (mode 16 16 :left :elide)
+	      " "
+	      filename-and-process)))
+(setq ibuffer-default-sorting-mode 'major-mode)
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;(setq flycheck-python-pylint-executable "/usr/local/bin/pylint")
(setq flycheck-python-pylint-executable "~/code/10stories/run_pylint.sh")
(setq flycheck-sh-shellcheck-executable "/usr/local/bin/shellcheck")


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(require 'ibuffer)
(global-set-key (kbd "C-x C-b") 'ibuffer)
(ensure-package-installed 'ibuffer-git)

(require 'ibuffer-git)
(setq ibuffer-git-column-length 8)
;; Use human readable Size column instead of original one
