Display icons for all buffers in ibuffer.
This package is extracted from Centaur Emacs and leverages all-the-icons.
From melpa, M-x package-install RET all-the-icons-ibuffer RET
.
(add-hook 'ibuffer-mode-hook #'all-the-icons-ibuffer-mode)
(use-package all-the-icons-ibuffer
:ensure t
:hook (ibuffer-mode . all-the-icons-ibuffer-mode))
To display icons correctly, you should run M-x all-the-icons-install-fonts
to
install the necessary fonts.
Enjoy! 😄
; Predicate whether the icons are able to be displayed."
(setq all-the-icons-ibuffer-display-predicate #'display-graphic-p)
;; Whether display the icons.
(setq all-the-icons-ibuffer-icon t)
;; Whether display the colorful icons.
;; It respects `all-the-icons-color-icons'.
(setq all-the-icons-ibuffer-color-icon t)
;; The default icon size in ibuffer.
(setq all-the-icons-ibuffer-icon-size 1.0)
;; The default vertical adjustment of the icon in ibuffer.
(setq all-the-icons-ibuffer-icon-v-adjust 0.0)
;; Use human readable file size in ibuffer.
(setq all-the-icons-ibuffer-human-readable-size t)
;; A list of ways to display buffer lines with `all-the-icons'.
;; See `ibuffer-formats' for details.
all-the-icons-ibuffer-formats
;; Slow Rendering
;; If you experience a slow down in performance when rendering multiple icons simultaneously,
;; you can try setting the following variable
(setq inhibit-compacting-font-caches t)
If you think the it's helpful for you, please consider paying a cup of coffee for me. Thank you! 😄