Add all-the-icons on combination with neotree | esthetic directory
This commit is contained in:
17
lisp/init-icons.el
Normal file
17
lisp/init-icons.el
Normal file
@@ -0,0 +1,17 @@
|
||||
;;----------------------------------
|
||||
;; All-the-icons
|
||||
;;----------------------------------
|
||||
(require-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)
|
||||
)
|
||||
|
||||
;; fix performace
|
||||
(setq inhibit-compacting-font-caches t)
|
||||
|
||||
(provide 'init-icons)
|
||||
@@ -12,6 +12,6 @@
|
||||
;;---------------------------------------------------------
|
||||
;; Custom icons - Require of all-the-icons
|
||||
;;---------------------------------------------------------
|
||||
;; (setq neo-theme (if (display-graphic-p) 'icons 'arrow))
|
||||
(setq neo-theme (if (display-graphic-p) 'icons 'arrow))
|
||||
|
||||
(provide 'init-neotree)
|
||||
|
||||
Reference in New Issue
Block a user