From adff1aa68da379370cfd6a7605fc15c28ade52f1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 22 Oct 2020 02:10:59 -0400 Subject: [PATCH] Fix #4102: wrong-type-arg plistp errors in daemon tty frames --- modules/ui/modeline/config.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ui/modeline/config.el b/modules/ui/modeline/config.el index 8ef94a3c3..9183364f0 100644 --- a/modules/ui/modeline/config.el +++ b/modules/ui/modeline/config.el @@ -32,6 +32,13 @@ (when (daemonp) (setq doom-modeline-icon t)) :config + ;; HACK Fix #4102 due to empty all-the-icons return value (caused by + ;; `doom--disable-all-the-icons-in-tty-a' advice) in tty daemon frames. + (defadvice! +modeline-disable-icon-in-daemon-a (orig-fn &rest args) + :around #'doom-modeline-propertize-icon + (when (display-graphic-p) + (apply orig-fn args))) + ;; Fix an issue where these two variables aren't defined in TTY Emacs on MacOS (defvar mouse-wheel-down-event nil) (defvar mouse-wheel-up-event nil)