diff options
-rw-r--r-- | modules/init-icons.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/init-icons.el b/modules/init-icons.el index ff2d81f..1a0d0db 100644 --- a/modules/init-icons.el +++ b/modules/init-icons.el @@ -7,15 +7,15 @@ ;;---------------------------------- ;; All-the-icons ;;---------------------------------- -(use-package all-the-icons) - -;;---------------------------------- -;; Fonts - connecting with neotree -;;--------------------------------- -(if (file-exists-p "~/.local/share/fonts/all-the-icons.ttf") - (message "the icons are installed :)") - (setq neotree-mode-hook 'all-the-icons-install-fonts) - ) +(use-package all-the-icons + :ensure t + :config + ;;---------------------------------- + ;; Fonts - connecting with neotree + ;;--------------------------------- + (if (member "all-the-icons" (font-family-list)) + (message "the icons are installed :)") + (setq neotree-mode-hook 'all-the-icons-install-fonts))) ;; fix performace (setq inhibit-compacting-font-caches t) |