From 379c01ba1e2f5f6abe8790ee877f8ff2192a7c79 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 25 Mar 2019 01:28:29 -0400 Subject: [PATCH] ui/modeline: fix icons in daemon-spawned frames Fix modeline icons in daemon-spawned graphical frames. We have our own mechanism for disabling all-the-icons, so we don't need doom-modeline to do it for us. However, this may cause unwanted padding in the modeline in daemon-spawned terminal frames. If it bothers you, you may prefer `doom-modeline-icon' set to `nil'. --- modules/ui/modeline/config.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ui/modeline/config.el b/modules/ui/modeline/config.el index c4adbd6b3..77680164e 100644 --- a/modules/ui/modeline/config.el +++ b/modules/ui/modeline/config.el @@ -17,6 +17,14 @@ doom-modeline-minor-modes nil doom-modeline-major-mode-icon nil doom-modeline-buffer-file-name-style 'relative-from-project) + + ;; Fix modeline icons in daemon-spawned graphical frames. We have our own + ;; mechanism for disabling all-the-icons, so we don't need doom-modeline to do + ;; it for us. However, this may cause unwanted padding in the modeline in + ;; daemon-spawned terminal frames. If it bothers you, you may prefer + ;; `doom-modeline-icon' set to `nil'. + (when (daemonp) + (setq doom-modeline-icon t)) :config (add-hook 'doom-modeline-mode-hook #'size-indication-mode) ; filesize in modeline (add-hook 'doom-modeline-mode-hook #'column-number-mode) ; cursor column in modeline