diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-icons.el | 17 | ||||
-rw-r--r-- | lisp/init-neotree.el | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lisp/init-icons.el b/lisp/init-icons.el new file mode 100644 index 0000000..252c9a4 --- /dev/null +++ b/lisp/init-icons.el @@ -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) diff --git a/lisp/init-neotree.el b/lisp/init-neotree.el index c3ab345..57edc3d 100644 --- a/lisp/init-neotree.el +++ b/lisp/init-neotree.el @@ -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) |