From 21b9230fc78f82adfb01743c3722ce36b9ce132a Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 13 Jun 2018 20:31:46 +0800 Subject: [PATCH] Disable all-the-icons in Windows due to the bad performance. --- doom-modeline.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index b8519d8..bb16df9 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -623,15 +623,15 @@ directory, the file name, and its state (modified, read-only or non-existent)." (defun doom-modeline-maybe-icon-octicon (&rest args) - (when (display-graphic-p) + (when (and (display-graphic-p) (not (eq system-type 'windows-nt))) (apply 'all-the-icons-octicon args))) (defun doom-modeline-maybe-icon-faicon (&rest args) - (when (display-graphic-p) + (when (and (display-graphic-p) (not (eq system-type 'windows-nt))) (apply 'all-the-icons-faicon args))) (defun doom-modeline-maybe-icon-material (&rest args) - (when (display-graphic-p) + (when (and (display-graphic-p) (not (eq system-type 'windows-nt))) (apply 'all-the-icons-material args))) ;;