Fix #4102: wrong-type-arg plistp errors in daemon tty frames

This commit is contained in:
Henrik Lissner 2020-10-22 02:10:59 -04:00
parent d1effe2ddd
commit adff1aa68d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)