From 8e02bf5f580dfc3e6d9750eccd10e60401e29753 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 26 Nov 2018 23:01:03 +0800 Subject: [PATCH] Disable icons in terminal by default. --- doom-modeline.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 6389d5c..1021dd7 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -92,9 +92,11 @@ Given ~/Projects/FOSS/emacs/lisp/comint.el (defvar doom-modeline-python-executable "python" "What executable of Python will be used (if nil nothing will be showed).") -(defvar doom-modeline-icon t - "Whether show `all-the-icons' or not (if nil nothing will be showed). -The icons may not be showed correctly on Windows. Disable to make it work.") +(defvar doom-modeline-icon (display-graphic-p) + "Whether show `all-the-icons' or not. + +Non-nil to show the icons in mode-line. +The icons may not be showed correctly in terminal and on Windows.") (defvar doom-modeline-major-mode-icon nil "Whether show the icon for major mode. It should respect `doom-modeline-icon'.")