From ff68bfa4e68df54a3583ada03d2986f3229e0f68 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 9 Mar 2019 01:51:11 +0700 Subject: [PATCH] Fix #140: Only load all-the-icons in GUI. --- doom-modeline-core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 60686aa..bdc9162 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -28,12 +28,13 @@ ;;; Code: -(require 'all-the-icons) (require 'eldoc-eval) (require 'shrink-path) (require 'subr-x) (when (>= emacs-major-version 26) (require 'project)) +(when (bound-and-true-p doom-modeline-icon) + (require 'all-the-icons)) ;;