From 56d7f70b2f1b778158dc5939b16168401a56cebe Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 16 Oct 2018 22:18:31 -0400 Subject: [PATCH] Make all-the-icons return empty string in tty #941 --- core/core-ui.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index d53775a6d..37f0c65d5 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -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