aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-10-03 17:40:45 -0500
committerJesús <heckyel@hyperbola.info>2018-10-03 17:40:45 -0500
commit6da61c1dcde65a9bc8904f5ee1ebaa591b90e4ff (patch)
tree7c54fe3e5e740ecc4ef536c8db6df712e3c927df
parent7ae797d197e631e36d403cc8813fea0b6b63ec71 (diff)
downloademacs-personal-6da61c1dcde65a9bc8904f5ee1ebaa591b90e4ff.tar.lz
emacs-personal-6da61c1dcde65a9bc8904f5ee1ebaa591b90e4ff.tar.xz
emacs-personal-6da61c1dcde65a9bc8904f5ee1ebaa591b90e4ff.zip
Add all-the-icons on combination with neotree | esthetic directory
-rw-r--r--custom.el2
-rw-r--r--init.el1
-rw-r--r--lisp/init-icons.el17
-rw-r--r--lisp/init-neotree.el2
4 files changed, 20 insertions, 2 deletions
diff --git a/custom.el b/custom.el
index 45247cf..8ece644 100644
--- a/custom.el
+++ b/custom.el
@@ -12,7 +12,7 @@
'(ecb-options-version "2.50")
'(package-selected-packages
(quote
- (neotree emmet-mode ecb undo-tree pip-requirements jedi highlight-indent-guides yaml-mode whitespace-cleanup-mode sublime-themes sml-modeline smarty-mode smart-mode-line-powerline-theme scss-mode sass-mode rainbow-mode prettier-js pkgbuild-mode pcre2el nlinum markdown-mode less-css-mode flycheck editorconfig anzu ac-php))))
+ (all-the-icons neotree emmet-mode ecb undo-tree pip-requirements jedi highlight-indent-guides yaml-mode whitespace-cleanup-mode sublime-themes sml-modeline smarty-mode smart-mode-line-powerline-theme scss-mode sass-mode rainbow-mode prettier-js pkgbuild-mode pcre2el nlinum markdown-mode less-css-mode flycheck editorconfig anzu ac-php))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/init.el b/init.el
index 07c1795..71c8c4b 100644
--- a/init.el
+++ b/init.el
@@ -37,6 +37,7 @@
(require 'init-ecb)
(require 'init-modeline)
(require 'init-indent-guides)
+(require 'init-icons)
(require 'init-neotree)
;; Tools
(require 'init-flycheck)
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)