From 43d09569606ede16a4d3b25c393d2e9ba9c150b5 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 12 Mar 2019 21:08:06 +0700 Subject: [PATCH] Improve macro segment. --- doom-modeline-segments.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index a836c09..d5ad3ad 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -955,10 +955,14 @@ lines are selected, or the NxM dimensions of a block selection." (when (and (doom-modeline--active) (or defining-kbd-macro executing-kbd-macro)) (let ((sep (propertize " " 'face 'doom-modeline-panel))) (concat sep - (propertize (if (bound-and-true-p evil-this-macro) - (char-to-string evil-this-macro) - "Macro") - 'face 'doom-modeline-panel) + (if doom-modeline-icon + (doom-modeline-icon-material "fiber_manual_record" + :face 'doom-modeline-panel + :v-adjust (/ -0.27 all-the-icons-scale-factor)) + (propertize (if (bound-and-true-p evil-this-macro) + (char-to-string evil-this-macro) + "Macro") + 'face 'doom-modeline-panel)) sep (if doom-modeline-icon (doom-modeline-icon-octicon "triangle-right"