all-the-icons.el
を使うとバッファ内やモードライン、ミニバッファでアイコンを表示できるようになります。
初めて使うときは、フォントインストールを促されますが、設定では自動化しています。
(leaf all-the-icons
:ensure t
:after doom-modeline
:custom (all-the-icons-scale-factor . 0.9)
:config
(unless (member "all-the-icons" (font-family-list))
(all-the-icons-install-fonts t)))
Emacs27以降、MELPA版は白色にしか表示されないので、上記リンク先をel-get
でインストールしています。
(leaf all-the-icons-dired
:el-get jtbm37/all-the-icons-dired
:after doom-modeline
:hook (dired-mode-hook . all-the-icons-dired-mode))
🔗 seagle0128/all-the-icons-ivy-rich: Display icons for all buffers in ivy.
(leaf all-the-icons-ivy-rich
:ensure t
:hook (after-init-hook . all-the-icons-ivy-rich-mode))
🔗 seagle0128/all-the-icons-ibuffer: Display icons for all buffers in ibuffer.
(leaf all-the-icons-ibuffer
:ensure t
:hook (ibuffer-mode-hook . all-the-icons-ibuffer-mode))