 
 ;;;; >> Buffer menu <<
 
+(setq-default ibuffer-default-sorting-mode 'major-mode)
+
 (use-package bufler
   ;; https://github.com/alphapapa/bufler.el
   ;; Group buffers into workspaces with programmable rules

                         (LaTeX-add-environments "equation*")
                         (LaTeX-add-environments "tikzpicture")
                         (LaTeX-add-environments "pgfonlayer")
                         ;; Line-breaking math
                         (add-to-list 'fill-nobreak-predicate 'texmathp)
                         ;; Helm for candidate completion

with C-u."
  (interactive)
  (if current-prefix-arg
      (bufler)
    (ibuffer)))

(general-define-key
 "C-x C-b" 'danylo/buffer-list)
