Disable all-the-icons in Windows due to the bad performance.

This commit is contained in:
Vincent Zhang 2018-06-13 20:31:46 +08:00
parent c6be6f5b48
commit 21b9230fc7

View file

@ -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) (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))) (apply 'all-the-icons-octicon args)))
(defun doom-modeline-maybe-icon-faicon (&rest 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))) (apply 'all-the-icons-faicon args)))
(defun doom-modeline-maybe-icon-material (&rest 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))) (apply 'all-the-icons-material args)))
;; ;;