Make all-the-icons return empty string in tty #941

This commit is contained in:
Henrik Lissner 2018-10-16 22:18:31 -04:00
parent 213f7f369e
commit 56d7f70b2f
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -116,8 +116,9 @@ size.")
all-the-icons-wicon all-the-icons-material all-the-icons-alltheicon)
:init
(defun doom*disable-all-the-icons-in-tty (orig-fn &rest args)
(when (display-graphic-p)
(apply orig-fn args)))
(if (display-graphic-p)
(apply orig-fn args)
""))
:config
;; all-the-icons doesn't work in the terminal, so we "disable" it.
(dolist (fn '(all-the-icons-octicon all-the-icons-material